[PATCH][gold] Use attributes of existing sections when placing orphan sections.

Ian Lance Taylor iant@google.com
Fri Oct 21 13:12:00 GMT 2016


On Fri, Oct 21, 2016 at 4:24 AM, Igor Kudrin <ikudrin@accesssoftek.com> wrote:
>
> The current version of gold uses names of described output sections
> to find places where to put orphan sections. If the sections in the
> linker script have different names, gold fails to find the right place
> for orphans. This patch addresses the issue by analyzing attributes
> of existing section if they have unfamiliar names.

One of the goals of gold's orphan section placement is to be
approximately the same as GNU ld's orphan section placement.  How does
GNU ld behave in the scenarios you are looking at?

Ian



More information about the Binutils mailing list