[PATCH] elf: Adjust PR ld/30791 tests

H.J. Lu hjl.tools@gmail.com
Thu Aug 31 15:44:45 GMT 2023


On Thu, Aug 31, 2023 at 1:54 AM Alan Modra <amodra@gmail.com> wrote:
>
> 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.
>
> d30v-elf  +FAIL: ld-elf/pr30791a
> dlx-elf  +FAIL: ld-elf/pr30791a
> fr30-elf  +FAIL: ld-elf/pr30791a
> frv-elf  +FAIL: ld-elf/pr30791a
> ft32-elf  +FAIL: ld-elf/pr30791a
> hppa-linux-gnu  +FAIL: ld-elf/pr30791b
> iq2000-elf  +FAIL: ld-elf/pr30791a
> mn10200-elf  +FAIL: ld-elf/pr30791a
> msp430-elf  +FAIL: ld-elf/pr30791a
> mt-elf  +FAIL: ld-elf/pr30791a
> pj-elf  +FAIL: ld-elf/pr30791a
> s12z-elf  +FAIL: ld-elf/pr30791a
> xgate-elf  +FAIL: ld-elf/pr30791a
> z80-elf  +FAIL: ld-elf/pr30791a
> z80-elf  +FAIL: ld-elf/pr30791b
>
> --
> Alan Modra
> Australia Development Lab, IBM

Here is a patch to adjust tests.

1. Generic linker targets don't comply with all orhpan section merging
rules.
2. z80 fails since a, b, c, d are registers for z80.
3. hppa fails since .text sections aren't merged for relocatable link.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-elf-Adjust-PR-ld-30791-tests.patch
Type: text/x-patch
Size: 1646 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20230831/6d4aa050/attachment.bin>


More information about the Binutils mailing list