This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: .bss segment alignment
- From: Bud Davis <bdavis9659 at comcast dot net>
- To: gcc-help at gcc dot gnu dot org
- Cc: Michael dot Wehrer at alcoa dot com
- Date: Thu, 22 Apr 2004 17:52:24 -0500
- Subject: RE: .bss segment alignment
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 :)
regards,
bud davis