projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e4dae3
)
add RTLD_DEFAULT support
author
Rich Felker
<dalias@aerifal.cx>
Mon, 27 Jun 2011 01:50:01 +0000
(21:50 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 27 Jun 2011 01:50:01 +0000
(21:50 -0400)
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index a23390e120dbd4a47241db33e1549a89760962bb..1cab8d125185ff8e518e0865b3a2ffd811371c01 100644
(file)
--- 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))