From: Alan Modra Date: Fri, 23 Jan 2026 23:20:57 +0000 (+1030) Subject: fix fail of X32 DSO from x86-64 sframe.o X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a1cbe173cc2db8e8058a914c4401548ad5d2c69;p=thirdparty%2Fbinutils-gdb.git 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 --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} \