aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <rafael.espindola@gmail.com>2015-04-27 14:33:02 -0400
committerRafael Ávila de Espíndola <rafael.espindola@gmail.com>2015-04-27 14:35:17 -0400
commitcfbf0e3c5b637d66b2b1aeadecae9c187b825b2f (patch)
treebe86234359ffb2555ab01fd46b40e3d82dee18c6 /gold/output.cc
parent4fff86c517abb5ba454befe0ec0f284f720dde00 (diff)
downloadgdb-cfbf0e3c5b637d66b2b1aeadecae9c187b825b2f.zip
gdb-cfbf0e3c5b637d66b2b1aeadecae9c187b825b2f.tar.gz
gdb-cfbf0e3c5b637d66b2b1aeadecae9c187b825b2f.tar.bz2
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.
Diffstat (limited to 'gold/output.cc')
-rw-r--r--gold/output.cc4
1 files changed, 3 insertions, 1 deletions
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;
}