[PATCH] hppa64: Skip/xfail three ld tests on hppa*64*-*-*
John David Anglin
dave.anglin@bell.net
Sat Jan 24 23:11:12 GMT 2026
This change avoids the remaing test fails in the ld testsuite.
Okay?
Dave
---
hppa64: Skip/xfail three ld tests on hppa*64*-*-*
The ver_def test fails because of the __text_seg and __data_seg
symbols in the dynamic symbol table.
The sec64k tests creates too many sections and fails.
The linux target doesn't currently have .data.rel.ro and fails the
regexp test for pr20995.
2026-01-24 John David Anglin <danglin@gcc.gnu.org>
ld/testsuite/ChangeLog:
* ld-elf/readelf.exp: Skip ver_def on hppa*64*-*-*.
* ld-elf/sec64k.exp: Likewise.
* ld-elf/shared.exp: xfail pr20995 on all OSes.
diff --git a/ld/testsuite/ld-elf/readelf.exp b/ld/testsuite/ld-elf/readelf.exp
index 7e0a670762a..4501c7028a2 100644
--- a/ld/testsuite/ld-elf/readelf.exp
+++ b/ld/testsuite/ld-elf/readelf.exp
@@ -30,6 +30,11 @@ if ![is_elf_format] {
return
}
+# ver_def fails because of __text_seg and __data_seg in .gnu.version.
+if [istarget "hppa*64*-*-*"] {
+ return
+}
+
# This target requires a non-default emulation for successful shared
# library/executable builds.
set LFLAGS ""
diff --git a/ld/testsuite/ld-elf/sec64k.exp b/ld/testsuite/ld-elf/sec64k.exp
index 724346382a1..3671244d70b 100644
--- a/ld/testsuite/ld-elf/sec64k.exp
+++ b/ld/testsuite/ld-elf/sec64k.exp
@@ -41,6 +41,11 @@ if {[istarget "ft32-*-*"]
return
}
+# Test creates too many sections on hppa64.
+if [istarget "hppa*64*-*-*"] {
+ return
+}
+
# Test >64k sections, with and without -r. First, create the assembly
# files. Have a relocation to another section and one within the local
# section.
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 2e71ed4b0cd..808ad6ffdb6 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -467,7 +467,7 @@ run_ld_link_tests [list \
# These targets don't copy dynamic variables into .bss.
setup_xfail "alpha-*-*" "bfin-*-*" "ia64-*-*" "xtensa-*-*" *loongarch*-*-*
# or don't have .data.rel.ro
-setup_xfail "hppa*64*-*-hpux*" "tic6x-*-*" "kvx*-*-*"
+setup_xfail "hppa*64*-*-*" "tic6x-*-*" "kvx*-*-*"
# or complain about relocs in read-only sections
setup_xfail frv-*-* lm32-*-*
run_ld_link_tests [list \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260124/f27bdce9/attachment.sig>
More information about the Binutils
mailing list