.bss segment alignment

Bud Davis bdavis9659@comcast.net
Thu Apr 22 22:52:00 GMT 2004

Not to sure if this will help, but you can force a fortran common to a
specific virtual address at link time by passing ld some commands:

g77 <usual stuff > -Wl,--defsym -Wl,global01_=0x40200000

with this you know that "COMMON / GLOBAL01 /" will be in a fixed
location.  i have used this in the past to map fortran common to shared
memory using shmat to a fixed address.

you can probably force anything to be anywhere with ld commands, but I
have no clue on the details :)

bud davis

More information about the Gcc-help mailing list