From: Rich Felker Date: Mon, 27 Jun 2011 01:50:01 +0000 (-0400) Subject: add RTLD_DEFAULT support X-Git-Tag: v0.7.11~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=97507bde474b0091a28628a7dae943c377758d49;p=oweals%2Fmusl.git add RTLD_DEFAULT support --- diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index a23390e1..1cab8d12 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -541,7 +541,8 @@ static void *do_dlsym(struct dso *p, const char *s) size_t i; uint32_t h; Sym *sym; - if (p == head) return find_sym(head, s, 0); + if (p == head || p == RTLD_DEFAULT) + return find_sym(head, s, 0); h = hash(s); sym = lookup(s, h, p->syms, p->hashtab, p->strings); if (sym && sym->st_value && (1<<(sym->st_info&0xf) & OK_TYPES))