]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
fix fail of X32 DSO from x86-64 sframe.o
authorAlan Modra <amodra@gmail.com>
Fri, 23 Jan 2026 23:20:57 +0000 (09:50 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 24 Jan 2026 00:13:40 +0000 (10:43 +1030)
The testcase assumes binutils is configured without
--disable-separate-code.  Pass -z separate-code to generate the
expected output.

ld/testsuite/ld-x86-64/x86-64.exp

index 657805d5a3a1f1e24f05aaa354b5b5eb9e02101b..8bed9b566bc3bcb0e6700de3695a0715ac8ce0e2 100644 (file)
@@ -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} \