[binutils-gdb] ld: testsuite: Enable ld-sparc tests on Solaris

Rainer Orth ro@sourceware.org
Thu Jan 22 20:03:12 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=483c5cc7764832b2944f99e5548103a7c1f89ea7

commit 483c5cc7764832b2944f99e5548103a7c1f89ea7
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date:   Thu Jan 22 21:02:32 2026 +0100

    ld: testsuite: Enable ld-sparc tests on Solaris
    
    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.

Diff:
---
 ld/testsuite/ld-sparc/sparc.exp | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/ld/testsuite/ld-sparc/sparc.exp b/ld/testsuite/ld-sparc/sparc.exp
index 8053e8bf4f3..4f6f0cf8959 100644
--- a/ld/testsuite/ld-sparc/sparc.exp
+++ b/ld/testsuite/ld-sparc/sparc.exp
@@ -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] } {


More information about the Binutils-cvs mailing list