GCC standard linker script

Programming, for all ages and all languages.
Post Reply
YeXo

GCC standard linker script

Post by YeXo »

Can anybody tell me what the default linker script is with gcc? I know it will be somewhere in the installation directory but I can't find it.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:GCC standard linker script

Post by Pype.Clicker »

if it's not embedded in the compiler, "strace -eopen gcc <stuff>" should tell :)
guest

Re:GCC standard linker script

Post by guest »

On a linux box it should be in either "/lib" or "/usr/lib" under "binutils/arch/version/ldscripts" I believe.
Post Reply