]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Ignore invalid relocations in relocation_next
authorPetr Machata <pmachata@redhat.com>
Tue, 7 Apr 2009 15:56:21 +0000 (17:56 +0200)
committerPetr Machata <pmachata@redhat.com>
Fri, 10 Apr 2009 13:43:26 +0000 (15:43 +0200)
src/dwarflint.c

index e5f7bbec8815262aff21847eddd46c4e3b0ba2de..fb5e92fb33b51380fd21762d9216aefd6d0fe047 100644 (file)
@@ -2529,6 +2529,9 @@ relocation_next (struct relocation_data *reloc, uint64_t offset,
 
       reloc->index++;
 
+      if (rel->invalid)
+       continue;
+
       if (rel->offset < offset)
        {
          if (st != skip_ok)