[binutils-gdb] ld: testsuite: Enable ld-elfweak tests on Solaris/x86

Rainer Orth ro@sourceware.org
Tue Jul 29 07:46:29 GMT 2025


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

commit e2a18d03badd9dcbb0b0f352c326f1e7998cd02c
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date:   Tue Jul 29 09:45:45 2025 +0200

    ld: testsuite: Enable ld-elfweak tests on Solaris/x86
    
    The ld-elfweak tests are currently only enabled on Solaris/SPARC for no
    apparent reason.  Enabling them on Solaris in general lets them all PASS
    on both amd64-pc-solaris2.11 and i386-pc-solaris2.11.
    
    2025-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
    
            ld:
            * testsuite/ld-elfweak/elfweak.exp: Enable on *-*-solaris2* rather
            than sparc*-*-solaris2* only.

Diff:
---
 ld/ChangeLog                        | 5 +++++
 ld/testsuite/ld-elfweak/elfweak.exp | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 37c745acd5d..7b03989a59d 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2025-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+	* testsuite/ld-elfweak/elfweak.exp: Enable on *-*-solaris2* rather
+	than sparc*-*-solaris2* only.
+
 2025-07-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
 	* testsuite/ld-plugin/lto.exp (PR ld/28138 test): Raise fd limit
diff --git a/ld/testsuite/ld-elfweak/elfweak.exp b/ld/testsuite/ld-elfweak/elfweak.exp
index aa6c29af574..4e5ac42606e 100644
--- a/ld/testsuite/ld-elfweak/elfweak.exp
+++ b/ld/testsuite/ld-elfweak/elfweak.exp
@@ -35,7 +35,8 @@ if { ![check_shared_lib_support] } {
 # This test can only be run on a couple of ELF platforms.
 # Square bracket expressions seem to confuse istarget.
 # This is similar to the test that is used in ld-shared, BTW.
-if {    ![istarget alpha*-*-linux*]
+if {    ![istarget *-*-solaris2*]
+     && ![istarget alpha*-*-linux*]
      && ![istarget arm*-*-linux*]
      && ![istarget hppa*64*-*-hpux*]
      && ![istarget hppa*-*-linux*]
@@ -52,7 +53,6 @@ if {    ![istarget alpha*-*-linux*]
      && ![istarget powerpc*-*-sysv4*]
      && ![istarget sh\[34\]*-*-linux*]
      && ![istarget sparc*-*-elf]
-     && ![istarget sparc*-*-solaris2*]
      && ![istarget sparc*-*-linux*]
      && ![istarget x86_64-*-linux*] } {
     return


More information about the Binutils-cvs mailing list