This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gold commit] PR 18847: Fix problem where script specified both address and region for a section


[with the patch]

On Wed, Aug 26, 2015 at 12:04 AM, Cary Coutant <ccoutant@gmail.com> wrote:
> 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.

Attachment: pr18847.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]