fix dlsym RTLD_NEXT support
authorRich Felker <dalias@aerifal.cx>
Sat, 7 Jul 2012 20:32:27 +0000 (16:32 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 7 Jul 2012 20:32:27 +0000 (16:32 -0400)
commitd93e028c6bbd491592313fc77e056f6424ea4668
tree5d9ccc113061da9dc431cf67613d35099546f562
parent920baab81f98a3cae3436361cdd044afe21fe347
fix dlsym RTLD_NEXT support

previously this was being handled the same as a library-specific,
dependency-order lookup on the next library in the global chain, which
is likely to be utterly meaningless. instead the lookup needs to be in
the global namespace, but omitting the initial portion of the global
library chain up through the calling library.
src/ldso/dynlink.c