From: Petr Machata Date: Mon, 23 Nov 2009 14:07:45 +0000 (+0100) Subject: dwarflint: Perhaps better error message for mismatched relocations X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90fc859c3c934b13be5805189f24cf65c706649d;p=thirdparty%2Felfutils.git dwarflint: Perhaps better error message for mismatched relocations * (i.e. relocations that relocate some datum that dwarflint knows nothing about) --- diff --git a/src/dwarflint/reloc.cc b/src/dwarflint/reloc.cc index c49a150ce..f58d26867 100644 --- a/src/dwarflint/reloc.cc +++ b/src/dwarflint/reloc.cc @@ -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;