提交 a5d6199d 编写于 作者: R Rich Felker

fix bug in gnu hash lookup on dlsym(handle, name) lookups

wrong hash was being passed; just a copy/paste error. did not affect
lookups in the global namespace; this is probably why it was not
caught in testing.
上级 dbcb3ad9
......@@ -877,7 +877,7 @@ static void *do_dlsym(struct dso *p, const char *s, void *ra)
if (p->deps) for (i=0; p->deps[i]; i++) {
if (p->deps[i]->ghashtab) {
if (!gh) gh = gnu_hash(s);
sym = gnu_lookup(s, h, p->deps[i]);
sym = gnu_lookup(s, gh, p->deps[i]);
} else {
if (!h) h = sysv_hash(s);
sym = sysv_lookup(s, h, p->deps[i]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册