How to get the default linker script used by gcc?

Mike Frysinger vapier@gentoo.org
Mon May 11 05:45:00 GMT 2009


On Monday 11 May 2009 01:34:45 Pan ruochen wrote:
> When I use gcc to build an executable like this
> gcc a.c
> How I can get the linker used by LD for that executable?
> Is there any option for this purpose? My LD version is 2.17.50

gcc doesnt know anything about linker scripts.  that is the job of the linker.  
you can see all the relevant files by linking with -Wl,--verbose.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20090511/932cc2fd/attachment.sig>


More information about the Binutils mailing list