a simple question about link

nick clifton nickc@redhat.com
Fri Jan 11 15:02:00 GMT 2013


Hi horseriver,

> After installing ld , there is a folder named "ldscripts" under
> ld's home directory , which can be set by --prefix configure option .
> Under /usr/lib folder , there is also  a folder named  "ldscripts" .
>  what is the difference between them ?

/usr/lib/ldscripts belongs to the system linker (ie /bin/ld).

<prefix>/lib/ldscripts belongs to the linker that you installed into 
<prefix>, ie <prefix>/bin/ld.


> ld will use which ?

Neither. :-)  It will use the versions of these scripts that are built 
directly into the ld binary itself.  Try running strings on the ld 
executable to see this.

Cheers
   Nick




More information about the Binutils mailing list