ld.so path

Petr Salinger Petr.Salinger at t-systems.cz
Fri Feb 24 08:29:12 UTC 2006


> > I strongly prefer to put ld-kfreebsd-x86-64.so.1 into /lib, not /lib64.
> > 
> > ld-kfreebsd-x86-64.so.1 will be primary dynamic linker for amd64,
> > all standard libraries will be in /lib, /usr/lib, ...
> > 
> > IMHO /lib64/ld-linux-x86-64.so.2 is big mistake.
> > amd64/i386 situation is far from sparc64/sparc or s390x/s390.
> > amd64 is complete 64bit port, not only extension of primary 32bit port.

> Well you can have the linker in /lib64 and the librairies in /lib.

It can, but it is silly, it drives us into problems, as in #325226.

The mentioned ABI in A.1 also says, that Linux amd64 libraries
should be in /lib64, /usr/lib64.
 
> Note that in case of GNU/Linux, it is not a choice, but defined in the 
> AMD64 ABI [1]. The linker could be /lib/ld64.so.1 or 
> /lib64/ld-linux-x86-64.so.2.

To be precise, ABI in section 5.2.1 says 

"There is one valid program interpreter for programs conforming 
to the AMD64 ABI:
   /lib/ld64.so.1
 However, Linux puts this in
   /lib64/ld-linux-x86-64.so.2
"
So Linux choosen to diverge. 

Does FreeBSD/amd64 use /lib64 at all ?

Petr






More information about the Glibc-bsd-devel mailing list