How to get the default linker script used by gcc?

M R Swami Reddy MR.Swami.Reddy@nsc.com
Mon May 11 05:45:00 GMT 2009


Pass -verbose option to linker, will show you the default linker script file info.

For ex:
 > gcc a.c -Wl,-verbose

Best Regards,
Swami

Pan ruochen wrote:
> Hi All,
> 
> 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
> 
> Best Regards
> PRC
> May 11,2009
> 
> 




More information about the Binutils mailing list