summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}