garyd@chemabs (garyd) (02/28/85)
I am trying to find out how to use the UNIX System V loader (ld) directives. These directives look something like: MEMORY { valid : org = 0x50000, len = 0x20000 } SECTIONS { .text : {} GROUP ALIGN (512) : { .data : {} .bss : {} } } My desire is to allocate a chunk of shared memory at a certain virtual address and then exec ld to relocate pointers based on the address, and finally, read the a.out into the shared memory for use by many other processes (shared code). I think these directives may help, but I would like to fully understand them. One of the chapters of the UNIX System V Transition Aids manual covers the Common Object File Format (COFF) and has a reference: "The link editor "SECTIONS directives" (see Link Editor User's Manual) allow users to describe how input sections are to be combined, ..." Where is this "Link Editor User's Manual"? I would appreciate any info you can send. Thanks in advance. Gary A. Davis Sr. Engineer Chemical Abstracts Service UUCP: ..{ihnp4|mhuxl|ho95b|ulysses}!cbosgd!osu-eddie!apr!chemabs!garyd AT&T: (614) 421-3600 X2355 USPS: Chemical Abstracts Service P.O. Box 3012 Columbus, Ohio 43210