ld: fix relocatable, retain7a target pattens for HPPA
authorSam James <sam@gentoo.org>
Mon, 14 Aug 2023 03:28:35 +0000 (04:28 +0100)
committerSam James <sam@gentoo.org>
Mon, 14 Aug 2023 03:32:33 +0000 (04:32 +0100)
Fix issue reported by Dave and Alan.

Put back the old pattern for hppa-*-linux* and add hppa[12]*-*-linux* to cover
Gentoo's hppa1.1 and hppa2.0 without including hppa64 inadvertently like I did
before.

ld/
PR 30733
PR 30734
* ld/testsuite/ld-elf/relocatable.d: Use better pattern to exclude hppa64
          but include hppa1.1, hppa2.0.
* ld/testsuite/ld-elf/retain7a.d: Ditto.

Fixes: 0e339f6b4f2df25ed351cb94dc7fe16868626f49
Fixes: e3b66187192ce6840df283c00f6395bb0ff15cf5
Signed-off-by: Sam James <sam@gentoo.org>
ld/testsuite/ld-elf/relocatable.d
ld/testsuite/ld-elf/retain7a.d

index cb39baa52bc9328484569d635f4d832b21324971..33a04912fd0dece3173c423802d8873478b72d5d 100644 (file)
@@ -2,7 +2,7 @@
 #source: simple.s
 #ld: -r -T relocatable.t
 #readelf: -S --wide
-#xfail: hppa*-*-*
+#xfail: hppa-*-* hppa[12]*-*-*
 
 #...
   \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t]+0+800000[ \t0-9a-f]+AX.*
index 38d9a9ba25533cd8ef9ce6e7ccc70aa7f89b8178..406aaa40ad5fbf8ce5d8f81513753f2a3ebc501a 100644 (file)
@@ -2,7 +2,7 @@
 #source: retain7.s
 #ld: -e _start --gc-sections
 # hppa-linux chooses ELFOSABI_GNU regardless of GNU feature use
-#notarget: ![supports_gnu_osabi] ![check_gc_sections_available] hppa*-*-linux*
+#notarget: ![supports_gnu_osabi] ![check_gc_sections_available] hppa-*-linux* hppa[12]*-*-linux*
 #readelf: -h
 
 #failif