projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f05f59b
)
fix bug in dladdr that prevented resolving addresses in the PLT
author
Rich Felker
<dalias@aerifal.cx>
Wed, 16 Jan 2013 16:47:35 +0000
(11:47 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 16 Jan 2013 16:47:35 +0000
(11:47 -0500)
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index 782e979fbde9226d338e08051ec5971535f7cd0a..4ce1c3e88b8451d0f8adf509cd46420c464e25ce 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-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;