From 6ecff18cc574b766c683a8a189fcbc3165935df6 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 7 Aug 2012 19:10:51 -0400 Subject: fix bug dlsym bug that slipped in during dynamic linker cleanup --- src/ldso/dynlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1