mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-09 00:02:17 +03:00
fix resolving interp string address on fdpic ldd command
This commit is contained in:
parent
eaf7ab6e24
commit
30fdc06bba
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user