From d264d04ac4ce418d2f42bf2da270325ad667d8ce Mon Sep 17 00:00:00 2001 From: Lulu Cai Date: Tue, 23 Apr 2024 15:49:09 +0800 Subject: LoongArch: Fix ld test failures caused by using instruction aliases Different versions of objdump may take different forms of output for instructions. Use -M no-aliases to avoid the failure of ld test cases caused by objdump using aliases. --- ld/testsuite/ld-loongarch-elf/relax.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld') diff --git a/ld/testsuite/ld-loongarch-elf/relax.exp b/ld/testsuite/ld-loongarch-elf/relax.exp index 890f139..6137bd1 100644 --- a/ld/testsuite/ld-loongarch-elf/relax.exp +++ b/ld/testsuite/ld-loongarch-elf/relax.exp @@ -37,7 +37,7 @@ proc run_partial_linking_align_test {} { || ![ld_link $ld tmpdir/$testname "tmpdir/$testname.os -e0 -Ttext 0x1000"] } { fail $testname } else { - set objdump_output [run_host_cmd "objdump" "-d tmpdir/$testname"] + set objdump_output [run_host_cmd "objdump" "-d -M no-aliases tmpdir/$testname"] if { [ regexp ".*1010:\\s*4c000020\\s*jirl.*" $objdump_output ] } { pass $testname } else { -- cgit v1.1