Fix symbol resolution for objects loaded by ELF dependencies.
commitcebaf0af09873785971ae3f468ef0f22adf129cd
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 22 Feb 2007 13:15:55 +0000 (22 13:15 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 22 Feb 2007 13:15:55 +0000 (22 13:15 +0000)
tree2e6f33681cdb64da6fdd1c2d9f2bb2cdfa62c286
parent8982d733d79a5c2d8e14a1ba7850db7b39f6da30
Fix symbol resolution for objects loaded by ELF dependencies.

We previously used the dagmembers of the specified object to resolve
a symbol.  However, dagmembers is only set for objects loaded by dlsym().
The correct behavior, implemented in this patch is to instead search
the needed objects.

This should fix KDE/SSL.

Taken-from: FreeBSD
Identified-by: Kimura Fuyuki <fuyuki@hadaly.org>
libexec/rtld-elf/rtld.c