OSDN Git Service

bionic/linker: fix symbol lookup during relocations
authorIliyan Malchev <malchev@google.com>
Fri, 25 Sep 2009 00:14:33 +0000 (17:14 -0700)
committerIliyan Malchev <malchev@google.com>
Mon, 28 Sep 2009 00:18:06 +0000 (17:18 -0700)
commit8d0c0334f1106d36f2fd5c1cf6d5dc75a4b88850
tree4f0b57fa3743ec253faac9ced5e4d9586920a633
parentbc10cd2900cdb7fed077163b6a33e0f8572b2b19
bionic/linker: fix symbol lookup during relocations

When resolving relocations while loading a library, the linker used to find
symbols by looking them up in the list of all linked libraries for the current
process, as opposed to following just the library's DT_NEEDED entries.  This
can cause a problem where the symbol is picked up from the wrong library.

Signed-off-by: Iliyan Malchev <malchev@google.com>
linker/linker.c