]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
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 16fb71d3ca25f9da15621b8c8ff9f77b836e7a08..81b4fcdde5598ebdf0f6d0d11ee0f0dbd6edbf90 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 0825722dd9a49f2e3c6ce22c3153d1bda3f444ab..83ca85351e046c88990ad66fe7a2d4ed154734c0 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;
            }
       }