[patch][gold] Fix pr18327

Rafael Espíndola rafael.espindola@gmail.com
Mon Apr 27 16:12:00 GMT 2015


The difference in behavior introduced in
67f95b96b4d5e8e19520d94bebae92db2f67af74 was that
Output_section::find_merge_section started returning non-null for
eh_frame sections. The old "lookup_maps_->find_merge_section" would
only include SHF_MERGE sections.

Finding the output section is a good thing, but the patch also handled
a given offset not being mapped in that section incorrectly.

This patch just fixes Output_section::is_input_address_mapped.

Cheers,
Rafael

2015-04-27  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>

* output.cc (Output_section::is_input_address_mapped): Assume a missing
entry is mapped.
* Makefile.am: Add the eh_test test.
* Makefile.in: Regenerate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 7118 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150427/e69ec638/attachment.bin>


More information about the Binutils mailing list