From: John David Anglin Date: Sun, 25 Jan 2026 14:51:50 +0000 (-0500) Subject: hppa64: Skip/xfail three ld tests on hppa*64*-*-* X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ad5857a5098fadac6a483de34a4cf17d2f61143;p=thirdparty%2Fbinutils-gdb.git 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 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 \