summaryrefslogtreecommitdiff
path: root/src/ldso
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-08-07 19:10:51 -0400
committerRich Felker <dalias@aerifal.cx>2012-08-07 19:10:51 -0400
commit6ecff18cc574b766c683a8a189fcbc3165935df6 (patch)
tree5e1149869a9ba1f6d3396b2e13981ec593a1df9d /src/ldso
parent721564a2640604f0291ae02a0439859ddd2167b3 (diff)
downloadmusl-6ecff18cc574b766c683a8a189fcbc3165935df6.tar.gz
musl-6ecff18cc574b766c683a8a189fcbc3165935df6.tar.bz2
musl-6ecff18cc574b766c683a8a189fcbc3165935df6.tar.xz
musl-6ecff18cc574b766c683a8a189fcbc3165935df6.zip
fix bug dlsym bug that slipped in during dynamic linker cleanup
Diffstat (limited to 'src/ldso')
-rw-r--r--src/ldso/dynlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 31ef6847..f55c6f10 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -803,7 +803,7 @@ static void *do_dlsym(struct dso *p, const char *s, void *ra)
if (sym && sym->st_value && (1<<(sym->st_info&0xf) & OK_TYPES))
return p->base + sym->st_value;
if (p->deps) for (i=0; p->deps[i]; i++) {
- sym = lookup(s, h, p);
+ sym = lookup(s, h, p->deps[i]);
if (sym && sym->st_value && (1<<(sym->st_info&0xf) & OK_TYPES))
return p->deps[i]->base + sym->st_value;
}