From cfbf0e3c5b637d66b2b1aeadecae9c187b825b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Mon, 27 Apr 2015 14:33:02 -0400 Subject: If a range is missing, assume the input address is mapped. When Output_section::is_input_address_mapped is called we have entries for all dropped ranges, but not for all ranges. --- gold/output.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gold/output.cc') diff --git a/gold/output.cc b/gold/output.cc index ee6c475..f34a7d8 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -2901,8 +2901,10 @@ Output_section::is_input_address_mapped(const Relobj* object, { section_offset_type output_offset; bool found = posd->output_offset(object, shndx, offset, &output_offset); + // By default we assume that the address is mapped. See comment at the + // end. if (!found) - return false; + return true; return output_offset != -1; } -- cgit v1.1