ld option to leave .reloc section on .exe?

Hungchen hungchen@ms1.seeder.net
Sun Mar 12 17:45:00 GMT 2000


Hi Chris

    I have an experience that add "--embedded-relocs" option 
    to ld. It will generate a .reloc section.

Like this 
$m68k-pic-coff-gcc -Xlinker --embedded-relocs test.c 

    My target is "m68k-pic-coff" maybe it's differemce from yours
    Hope it works.

Steven Chang
hungchen@ms1.seeder.net

> -----Original Message-----
> From: Chris Metcalf [ mailto:metcalf@incert.com ]
> Sent: Saturday, March 11, 2000 6:16 AM
> To: cygwin@sourceware.cygnus.com
> Subject: ld option to leave .reloc section on .exe?
> 
> 
> Is there any way to convince the Cygwin toolchain to leave 
> the relocation
> information (normally in a .reloc section) in a .exe file?  
> By default it
> strips it off, and if you pass -r (--relocateable) then what 
> you actually
> get is a COFF object file (i.e. an .obj) but with a .exe 
> extension, which
> is quite a different kind of animal.
> 
> Many thanks!
> 
>                 Chris Metcalf -- InCert Software -- 1 (617) 621 8080
>                 metcalf@incert.com -- http://www.incert.com/~metcalf
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 


More information about the Cygwin mailing list