[gold commit] PR 18847: Fix problem where script specified both address and region for a section
Cary Coutant
ccoutant@gmail.com
Wed Aug 26 07:05:00 GMT 2015
If a script specifies both address and region for an output section
declaration, gold ignores the region specification. This can lead to
bogus "moves backward" errors. This patch fixes gold so that if a
section specifies both address and region, it will place the section
at the specified address in the region, and update the location counter
within the region.
-cary
2015-08-25 Cary Coutant <ccoutant@gmail.com>
gold/
PR gold/18847
* script-sections.cc (Memory_region::set_address): New method.
(Script_sections::find_memory_region): Add explicit_only parameter.
(Output_section_definition::set_section_addresses): Handle case where
script specifies both address and vma region.
* script-sections.h (Script_sections::find_memory_region): Add
explicit_only parameter.
More information about the Binutils
mailing list