diff options
author | Lulu Cai <cailulu@loongson.cn> | 2024-04-23 15:49:09 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-05-07 16:38:25 +0800 |
commit | d264d04ac4ce418d2f42bf2da270325ad667d8ce (patch) | |
tree | 01f28459e973958acf280766eda8315a16c921d8 /ld | |
parent | cdf5362f562ad605199f28db686f93251979ae5d (diff) | |
download | gdb-d264d04ac4ce418d2f42bf2da270325ad667d8ce.zip gdb-d264d04ac4ce418d2f42bf2da270325ad667d8ce.tar.gz gdb-d264d04ac4ce418d2f42bf2da270325ad667d8ce.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-loongarch-elf/relax.exp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |