elf: Adjust PR ld/30791 tests
Checks
Commit Message
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.
Comments
On Thu, Aug 31, 2023 at 08:44:45AM -0700, H.J. Lu wrote:
> 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
> >
> 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.
Thanks for fixing this.
From 4c41d6f07eb9ea529bbc0d153bfcd8e1b49020ec Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Thu, 31 Aug 2023 08:38:10 -0700
Subject: [PATCH] elf: Adjust PR ld/30791 tests
Adjust PR ld/30791 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.
PR ld/30791
* testsuite/ld-elf/pr30791a.d: Xfail for generic and z80
targets.
* testsuite/ld-elf/pr30791b.d: Xfail for hppa and z80 targets.
---
ld/testsuite/ld-elf/pr30791a.d | 4 ++++
ld/testsuite/ld-elf/pr30791b.d | 3 +++
2 files changed, 7 insertions(+)
@@ -2,6 +2,10 @@
#source: pr30791b.s
#ld: -r
#readelf: -S --wide
+#xfail: [is_generic] fr30-*-* frv-*-elf ft32-*-* iq2000-*-* mn10200-*-*
+#xfail: msp430-* mt-*-* z80-*-*
+# Generic linker targets don't comply with all orhpan section merging
+# rules. z80 fails since a, b, c, d are registers for z80.
#...
Section Headers:
@@ -2,6 +2,9 @@
#source: pr30791d.s
#ld: -r
#readelf: -S --wide
+#xfail: hppa-*-* z80-*-*
+# hppa fails since .text sections aren't merged for relocatable link.
+# z80 fails since a, b, c, d are registers for z80.
#failif
#...
--
2.41.0