delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/29/03:10:30

From: sirott AT pmel DOT noaa DOT gov (Joe Sirott)
Subject: ld not picking up .bss sections from Digital Fortran
29 Jan 1999 03:10:30 -0800 :
Message-ID: <36B0D85C.F5577239.cygnus.gnu-win32@pmel.noaa.gov>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019