mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-04 07:44:22 +08:00
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.
This commit is contained in:
parent
cdf5362f56
commit
d264d04ac4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user