From 9fdd461bda5fe2921dc0ce91aaba9e21805bbdd2 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 1 Feb 2011 16:09:43 -0800 Subject: [PATCH] libdwfl: Fix prelink address_sync to find 64-bit PT_INTERP. --- libdwfl/ChangeLog | 5 +++++ libdwfl/dwfl_module_getdwarf.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 16fb71d3c..81b4fcdde 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,8 @@ +2011-02-01 Roland McGrath + + * dwfl_module_getdwarf.c (find_prelink_address_sync): Fix pasto in + last change, so we recognize PT_INTERP in ELFCLASS64 correctly. + 2011-01-11 Roland McGrath * dwfl_module_getdwarf.c (open_elf): Remove section-based diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c index 0825722dd..83ca85351 100644 --- a/libdwfl/dwfl_module_getdwarf.c +++ b/libdwfl/dwfl_module_getdwarf.c @@ -423,9 +423,9 @@ find_prelink_address_sync (Dwfl_Module *mod) else { for (uint_fast16_t i = 0; i < phnum; ++i) - if (phdr.p32[i].p_type == PT_INTERP) + if (phdr.p64[i].p_type == PT_INTERP) { - interp = phdr.p32[i].p_vaddr; + interp = phdr.p64[i].p_vaddr; break; } } -- 2.47.2