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

fix bug in dladdr that prevented resolving addresses in the PLT

上级 f05f59b8
......@@ -1188,7 +1188,7 @@ int __dladdr(void *addr, Dl_info *info)
}
for (; nsym; nsym--, sym++) {
if (sym->st_shndx && sym->st_value
if (sym->st_value
&& (1<<(sym->st_info&0xf) & OK_TYPES)
&& (1<<(sym->st_info>>4) & OK_BINDS)) {
void *symaddr = p->base + sym->st_value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册