fix bug in dladdr that prevented resolving addresses in the PLT

This commit is contained in:
Rich Felker 2013-01-16 11:47:35 -05:00
commit cdc5c74c6a

View file

@ -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;