mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
05805feba2
This fixes the testcases that are failing due to my recent patch. It turns out that the start address across baremetal and linux builds isn't entirely predictable without a linker script. Since the address themselves are not the important thing I am ignoring them now. Secondly I was encoding data using .word using non 0 values, however because .word is subjected to endiannes these non-zero values under big-endian happen to fall into the encoding space of instructions which changes the disassembly. Using 0 fixes this problem and the purpose of the test still holds, though objdump will dump ... for data only sections, which is ok as the data/insn mixed sections will test the patch. The ARM Attributes sections is not important and is ignored. binutils/ChangeLog: * testsuite/binutils-all/aarch64/in-order.d: Likewise. * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise. * testsuite/binutils-all/aarch64/out-of-order.d: Likewise. * testsuite/binutils-all/aarch64/out-of-order.s: Likewise. * testsuite/binutils-all/arm/in-order-all.d: Likewise. * testsuite/binutils-all/arm/in-order.d: Likewise. * testsuite/binutils-all/arm/out-of-order-all.d: Likewise. * testsuite/binutils-all/arm/out-of-order.d: Likewise. * testsuite/binutils-all/arm/out-of-order.s: Likewise.
29 lines
615 B
Makefile
29 lines
615 B
Makefile
#PROG: objcopy
|
|
#source: out-of-order.s
|
|
#ld: -e v1 -Ttext-segment=0x400000
|
|
#objdump: -d
|
|
#name: Check if disassembler can handle sections in default order
|
|
|
|
.*: +file format .*aarch64.*
|
|
|
|
Disassembly of section \.func1:
|
|
|
|
.+ <v1>:
|
|
[^:]+: 8b010000 add x0, x0, x1
|
|
[^:]+: 00000000 \.word 0x00000000
|
|
|
|
Disassembly of section .func2:
|
|
|
|
.+ <\.func2>:
|
|
[^:]+: 8b010000 add x0, x0, x1
|
|
|
|
Disassembly of section \.func3:
|
|
|
|
.+ <\.func3>:
|
|
[^:]+: 8b010000 add x0, x0, x1
|
|
[^:]+: 8b010000 add x0, x0, x1
|
|
[^:]+: 8b010000 add x0, x0, x1
|
|
[^:]+: 8b010000 add x0, x0, x1
|
|
[^:]+: 8b010000 add x0, x0, x1
|
|
[^:]+: 00000000 \.word 0x00000000
|