fix fail of X32 DSO from x86-64 sframe.o

Alan Modra amodra@gmail.com
Sat Jan 24 00:19:35 GMT 2026


The testcase assumes binutils is configured without
--disable-separate-code.  Pass -z separate-code to generate the
expected output.

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} \

-- 
Alan Modra


More information about the Binutils mailing list