libdwfl: Fix prelink address_sync to find 64-bit PT_INTERP.
authorRoland McGrath <roland@redhat.com>
Wed, 2 Feb 2011 00:09:43 +0000 (16:09 -0800)
committerRoland McGrath <roland@redhat.com>
Wed, 2 Feb 2011 00:09:43 +0000 (16:09 -0800)
libdwfl/ChangeLog
libdwfl/dwfl_module_getdwarf.c

index 16fb71d..81b4fcd 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-01  Roland McGrath  <roland@redhat.com>
+
+       * 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  <roland@redhat.com>
 
        * dwfl_module_getdwarf.c (open_elf): Remove section-based
index 0825722..83ca853 100644 (file)
@@ -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;
            }
       }