diff options
author | Rafael Ávila de Espíndola <rafael.espindola@gmail.com> | 2015-04-27 14:33:02 -0400 |
---|---|---|
committer | Rafael Ávila de Espíndola <rafael.espindola@gmail.com> | 2015-04-27 14:35:17 -0400 |
commit | cfbf0e3c5b637d66b2b1aeadecae9c187b825b2f (patch) | |
tree | be86234359ffb2555ab01fd46b40e3d82dee18c6 /gold/output.cc | |
parent | 4fff86c517abb5ba454befe0ec0f284f720dde00 (diff) | |
download | fsf-binutils-gdb-cfbf0e3c5b637d66b2b1aeadecae9c187b825b2f.zip fsf-binutils-gdb-cfbf0e3c5b637d66b2b1aeadecae9c187b825b2f.tar.gz fsf-binutils-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.cc | 4 |
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; } |