]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Perhaps better error message for mismatched relocations
authorPetr Machata <pmachata@redhat.com>
Mon, 23 Nov 2009 14:07:45 +0000 (15:07 +0100)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Aug 2010 12:55:13 +0000 (14:55 +0200)
* (i.e. relocations that relocate some datum that dwarflint knows
  nothing about)

src/dwarflint/reloc.cc

index c49a150ce4c9e8258b0b5759e5f11e2e3f58b562..f58d268671a495ba2c54dfaea24a305c9d7b5200 100644 (file)
@@ -44,7 +44,8 @@ relocation_next (relocation_data *reloc, uint64_t offset,
              wr_error (reloc_where)
                << (st == skip_unref
                    ? "relocation targets unreferenced portion of the section."
-                   : "relocation is mismatched.")
+                   : (assert (st == skip_mismatched),
+                      "relocation relocates unknown datum."))
                << std::endl;
            }
          continue;