]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Report relocation offset as soon as we know it
authorPetr Machata <pmachata@redhat.com>
Wed, 18 Feb 2009 16:23:50 +0000 (17:23 +0100)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Feb 2009 16:23:50 +0000 (17:23 +0100)
src/dwarflint.c

index 5586156f3efefa59557d2e4b53075a9cbc178081..4031e91b332dcec999f1383770c704d469376afa 100644 (file)
@@ -4267,6 +4267,7 @@ check_relocation_section_structural (Dwarf *dwarf,
          wr_error (&where, ": couldn't read relocation.\n");
          return false;
        }
+      where_reset_2 (&where, rela->r_offset);
 
       int rtype = GELF_R_TYPE (rela->r_info);
       Elf_Type type = ebl_reloc_simple_type (ebl, rtype);