[PATCH] Introduce new .text.sorted.* sections.
Alan Modra
amodra@gmail.com
Wed Sep 25 13:34:00 GMT 2019
On Tue, Sep 24, 2019 at 02:05:09PM +0200, Martin Liška wrote:
> Hi.
>
> Aim of the patch is to introduce a new .text subsection that
> will be sorted by default. That can be leveraged in LTO where we
> want to provide a specific sorting of symbols in a binary.
This looks fine to me, even though the gold implementation can produce
different results on input sections that match ".text.sorted.*". For
example, ".text.sorted.1" will be accepted by both ld.gold and ld.bfd,
but ld.bfd will sort it after ".text.sorted.02" while ld.gold would
sort it before.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list