[PATCH] elf: Don't merge sections with different SHF_LINK_ORDER
Alan Modra
amodra@gmail.com
Wed Aug 30 23:50:56 GMT 2023
On Wed, Aug 30, 2023 at 10:31:49AM -0700, H.J. Lu via Binutils wrote:
> For relocatable link, don't merge 2 SHF_LINK_ORDER sections if output
> sections of their linked to sections are different.
>
> * ldelf.c (elf_orphan_compatible): Don't merge sections with
> different SHF_LINK_ORDER.
> * testsuite/ld-elf/pr30791a.d: New file.
> * testsuite/ld-elf/pr30791a.s: Likewise.
> * testsuite/ld-elf/pr30791b.d: Likewise.
> * testsuite/ld-elf/pr30791b.s: Likewise.
> * testsuite/ld-elf/pr30791c.s: Likewise.
> * testsuite/ld-elf/pr30791d.s: Likewise.
OK, thanks.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list