summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-09-22 19:21:57 +0000
committerRich Felker <dalias@aerifal.cx>2015-09-22 19:21:57 +0000
commit30fdc06bbaeaff871780f9816e312e3820fb214a (patch)
tree7225d69f06e784850f79848122fb4f8623ddb231 /src
parenteaf7ab6e24914bae8092edf05919e43f10092533 (diff)
downloadmusl-30fdc06bbaeaff871780f9816e312e3820fb214a.tar.gz
musl-30fdc06bbaeaff871780f9816e312e3820fb214a.tar.bz2
musl-30fdc06bbaeaff871780f9816e312e3820fb214a.tar.xz
musl-30fdc06bbaeaff871780f9816e312e3820fb214a.zip
fix resolving interp string address on fdpic ldd command
Diffstat (limited to 'src')
-rw-r--r--src/ldso/dynlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 2c822b64..f8325a01 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -1512,8 +1512,7 @@ _Noreturn void __dls3(size_t *sp)
if (ldd_mode) {
for (i=0; i<app.phnum; i++) {
if (app.phdr[i].p_type == PT_INTERP)
- ldso.name = (void *)(app.base
- + app.phdr[i].p_vaddr);
+ ldso.name = laddr(&app, app.phdr[i].p_vaddr);
}
dprintf(1, "\t%s (%p)\n", ldso.name, ldso.base);
}