public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ld not picking up .bss sections from Digital Fortran
@ 1999-01-31 23:52 Joe Sirott
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Sirott @ 1999-01-31 23:52 UTC (permalink / raw)
  To: gnu-win32

Hi,

I'm trying to link code generated by Digital Fortran with GNU C code
(under cygwin B20.1). The code crashes with segmentation faults. When I
run the code under gdb, it turns out that static variables in the C code
are pointing to the same memory areas as the Fortran local variables. It
appears that a .bss section that the Fortran compiler sets aside for
local variables is not being picked up by ld. It doesn't appear in the
link map, but a dumpbin of the section headers of the Fortran object
file looks like this:

> SECTION HEADER #3
>     .bss name
>        0 physical address
>        0 virtual address
>      808 size of raw data
>        0 file pointer to raw data
>        0 file pointer to relocation table
>        0 file pointer to line numbers
>        0 number of relocations
>        0 number of line numbers
> C0400080 flags
>          Uninitialized Data
>          8 byte align
>          Read Write

Any ideas why this doesn't work?
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ld not picking up .bss sections from Digital Fortran
@ 1999-01-31 23:52 Suhaib M. Siddiqi
  0 siblings, 0 replies; 2+ messages in thread
From: Suhaib M. Siddiqi @ 1999-01-31 23:52 UTC (permalink / raw)
  To: Joe Sirott, gnu-win32

You are out of luck here!!!
You are trying something which cannot be done at present.
 DVF stuff is not compatible with
GNU and/or Cygnus.

Suhaib





----- Original Message -----
From: Joe Sirott <sirott@pmel.noaa.gov>
To: <gnu-win32@cygnus.com>
Sent: Thursday, January 28, 1999 4:36 PM
Subject: ld not picking up .bss sections from Digital Fortran


>Hi,
>
>I'm trying to link code generated by Digital Fortran with GNU C code
>(under cygwin B20.1). The code crashes with segmentation faults. When I
>run the code under gdb, it turns out that static variables in the C
code
>are pointing to the same memory areas as the Fortran local variables.
It
>appears that a .bss section that the Fortran compiler sets aside for
>local variables is not being picked up by ld. It doesn't appear in the
>link map, but a dumpbin of the section headers of the Fortran object
>file looks like this:
>
>> SECTION HEADER #3
>>     .bss name
>>        0 physical address
>>        0 virtual address
>>      808 size of raw data
>>        0 file pointer to raw data
>>        0 file pointer to relocation table
>>        0 file pointer to line numbers
>>        0 number of relocations
>>        0 number of line numbers
>> C0400080 flags
>>          Uninitialized Data
>>          8 byte align
>>          Read Write
>
>Any ideas why this doesn't work?
>-
>For help on using this list (especially unsubscribing), send a message
to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-01-31 23:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-31 23:52 ld not picking up .bss sections from Digital Fortran Joe Sirott
  -- strict thread matches above, loose matches on Subject: below --
1999-01-31 23:52 Suhaib M. Siddiqi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).