提交 97507bde 编写于 作者: R Rich Felker

add RTLD_DEFAULT support

上级 0e4dae3d
......@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册