This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]