]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: testsuite: Enable ld-sparc tests on Solaris
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 22 Jan 2026 20:02:32 +0000 (21:02 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 22 Jan 2026 20:02:32 +0000 (21:02 +0100)
The ld-sparc tests aren't currently run on Solaris to avoid PR
binutils/27666.  This has been fixed, so they can be enabled there, too.

Tested no sparc{v9,}-sun-solaris2.11 and sparc{64,}-unknown-linux-gnu.

2026-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

ld:
* testsuite/ld-sparc/sparc.exp: Run sparctests, sparc64tests on
Solaris.

ld/testsuite/ld-sparc/sparc.exp

index 8053e8bf4f3f1a0440339129199be48742b5f611..4f6f0cf895914dda49a7138e5db75f2fed9d2110 100644 (file)
@@ -150,19 +150,12 @@ set sparc64tests {
      "libgotop64.so"}
 }
 
-# The solaris2 targets do not support the generic SPARC ELF targets,
-# ie -melf32_sparc and -melf64_sparc, so we skip the next set of
-# tests for them.  Support could be added, but this then breaks the
-# creation of archives for those targets.  See PR 27666 for more
-# details.
-if { ![istarget "*-*-solaris2*"] } {
-    if { ![istarget "sparc64-*-elf*"] } {
-        run_ld_link_tests $sparctests
-    }
+if { ![istarget "sparc64-*-elf*"] } {
+    run_ld_link_tests $sparctests
+}
 
-    if { ![istarget "sparc-*-elf*"] } {
-        run_ld_link_tests $sparc64tests
-    }
+if { ![istarget "sparc-*-elf*"] } {
+    run_ld_link_tests $sparc64tests
 }
 
 if { [istarget "sparc*-*-linux*"] && [isnative] } {