fix bug in dladdr that prevented resolving addresses in the PLT
This commit is contained in:
parent
f05f59b804
commit
cdc5c74c6a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue