This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: a simple question about link


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]