From 90fc859c3c934b13be5805189f24cf65c706649d Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Mon, 23 Nov 2009 15:07:45 +0100 Subject: [PATCH] dwarflint: Perhaps better error message for mismatched relocations * (i.e. relocations that relocate some datum that dwarflint knows nothing about) --- src/dwarflint/reloc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.3