[binutils-gdb] fix fail of X32 DSO from x86-64 sframe.o

Alan Modra amodra@sourceware.org
Sat Jan 24 00:14:32 GMT 2026


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

commit 1a1cbe173cc2db8e8058a914c4401548ad5d2c69
Author: Alan Modra <amodra@gmail.com>
Date:   Sat Jan 24 09:50:57 2026 +1030

    fix fail of X32 DSO from x86-64 sframe.o
    
    The testcase assumes binutils is configured without
    --disable-separate-code.  Pass -z separate-code to generate the
    expected output.

Diff:
---
 ld/testsuite/ld-x86-64/x86-64.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index 657805d5a3a..8bed9b566bc 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -671,7 +671,7 @@ if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
     run_ld_link_tests [list \
 	[list \
 	    "X32 DSO from x86-64 sframe.o" \
-	    "-shared --hash-style=both --no-rosegment -melf32_x86_64" \
+	    "-shared --hash-style=both --no-rosegment -z separate-code -melf32_x86_64" \
 	    "tmpdir/sframe-x32.o" \
 	    "--x32 -mx86-used-note=yes" \
 	    {dummy.s} \


More information about the Binutils-cvs mailing list