ld and GNU/Linux ld.so disagree on dependent library search order (?)

Ian Lance Taylor ian@airs.com
Sat Feb 4 06:11:00 GMT 2006


Jeremy Brown <jhbrown@itasoftware.com> writes:

> The thing that got us is that when ld is looking up dependent
> libraries, it will search a variety of locations, with the final two
> sets being first, the system directories /lib and /usr/lib; and second
> and finally, in directories listed in /etc/ld.so.conf [1]

ld and ld.so should use the same search path for shared libraries.
Anything else is a bug.  It sounds like you have found a bug, or else
the ld.so behaviour has changed.

Ian



More information about the Binutils mailing list