diff options
| author | Iliyan Malchev <malchev@google.com> | 2009-09-28 18:21:30 -0700 |
|---|---|---|
| committer | Iliyan Malchev <malchev@google.com> | 2009-09-29 14:33:46 -0700 |
| commit | 9ea64da6c511e8f9f4edae4c10c20879957631ab (patch) | |
| tree | 11adf7525e859f87f980f7836936c30570213446 /linker/linker.c | |
| parent | 6ed80c8814db9eed1fb687be22322e38dc46a2fb (diff) | |
| download | bionic-9ea64da6c511e8f9f4edae4c10c20879957631ab.zip bionic-9ea64da6c511e8f9f4edae4c10c20879957631ab.tar.gz bionic-9ea64da6c511e8f9f4edae4c10c20879957631ab.tar.bz2 | |
bionic/linker: change lookup() to return soinfo, not base
Diffstat (limited to 'linker/linker.c')
| -rw-r--r-- | linker/linker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linker/linker.c b/linker/linker.c index 6f09837..b260749 100644 --- a/linker/linker.c +++ b/linker/linker.c @@ -482,7 +482,7 @@ Elf32_Sym *lookup_in_library(soinfo *si, const char *name) /* This is used by dl_sym(). It performs a global symbol lookup. */ -Elf32_Sym *lookup(const char *name, unsigned *base) +Elf32_Sym *lookup(const char *name, soinfo **found) { unsigned elf_hash = 0; Elf32_Sym *s = NULL; @@ -494,7 +494,7 @@ Elf32_Sym *lookup(const char *name, unsigned *base) continue; s = _do_lookup_in_so(si, name, &elf_hash); if (s != NULL) { - *base = si->base; + *found = si; break; } } |
