ld: fix relocatable, retain7a target pattens for HPPA

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: 0e339f6b4f
Fixes: e3b6618719
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2023-08-14 04:28:35 +01:00
parent cd69e3f575
commit 3b23a5ea69
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 2 additions and 2 deletions

View 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.*

View 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