diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-08-07 19:10:51 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-08-07 19:10:51 -0400 |
commit | 6ecff18cc574b766c683a8a189fcbc3165935df6 (patch) | |
tree | 5e1149869a9ba1f6d3396b2e13981ec593a1df9d /src | |
parent | 721564a2640604f0291ae02a0439859ddd2167b3 (diff) | |
download | musl-6ecff18cc574b766c683a8a189fcbc3165935df6.tar.gz musl-6ecff18cc574b766c683a8a189fcbc3165935df6.tar.xz musl-6ecff18cc574b766c683a8a189fcbc3165935df6.zip |
fix bug dlsym bug that slipped in during dynamic linker cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/ldso/dynlink.c | 2 |
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; } |