| 1 |
#PROG: objcopy |
| 2 |
#source: out-of-order.s |
| 3 |
#ld: -T out-of-order.T |
| 4 |
#objdump: -D |
| 5 |
#name: Check if disassembler can handle all sections in different order than header |
| 6 |
|
| 7 |
.*: +file format .*aarch64.* |
| 8 |
|
| 9 |
Disassembly of section \.global: |
| 10 |
|
| 11 |
.+ <\.global>: |
| 12 |
... |
| 13 |
|
| 14 |
Disassembly of section \.func2: |
| 15 |
|
| 16 |
.+ <\.func2>: |
| 17 |
[^:]+: 8b010000 add x0, x0, x1 |
| 18 |
|
| 19 |
Disassembly of section \.func1: |
| 20 |
|
| 21 |
.+ <v1>: |
| 22 |
[^:]+: 8b010000 add x0, x0, x1 |
| 23 |
[^:]+: 00000000 udf #0 |
| 24 |
|
| 25 |
Disassembly of section \.func3: |
| 26 |
|
| 27 |
.+ <\.func3>: |
| 28 |
[^:]+: 8b010000 add x0, x0, x1 |
| 29 |
[^:]+: 8b010000 add x0, x0, x1 |
| 30 |
[^:]+: 8b010000 add x0, x0, x1 |
| 31 |
[^:]+: 8b010000 add x0, x0, x1 |
| 32 |
[^:]+: 8b010000 add x0, x0, x1 |
| 33 |
[^:]+: 00000000 udf #0 |
| 34 |
|
| 35 |
Disassembly of section \.rodata: |
| 36 |
|
| 37 |
.+ <\.rodata>: |
| 38 |
[^:]+: 00000000 udf #0 |