|
| 1 | +#PROG: objcopy |
| 2 | +#source: out-of-order.s |
| 3 | +#ld: -e v1 -Ttext-segment=0x400000 |
| 4 | +#objdump: -D |
| 5 | +#name: Check if disassembler can handle all sections in default order |
| 6 | + |
| 7 | +.*: +file format .*aarch64.* |
| 8 | + |
| 9 | +Disassembly of section \.func1: |
| 10 | + |
| 11 | +0000000000400000 <v1>: |
| 12 | + 400000: 8b010000 add x0, x0, x1 |
| 13 | + 400004: 00000000 \.inst 0x00000000 ; undefined |
| 14 | + |
| 15 | +Disassembly of section \.func2: |
| 16 | + |
| 17 | +0000000000400008 <\.func2>: |
| 18 | + 400008: 8b010000 add x0, x0, x1 |
| 19 | + |
| 20 | +Disassembly of section \.func3: |
| 21 | + |
| 22 | +000000000040000c <\.func3>: |
| 23 | + 40000c: 8b010000 add x0, x0, x1 |
| 24 | + 400010: 8b010000 add x0, x0, x1 |
| 25 | + 400014: 8b010000 add x0, x0, x1 |
| 26 | + 400018: 8b010000 add x0, x0, x1 |
| 27 | + 40001c: 8b010000 add x0, x0, x1 |
| 28 | + 400020: 00000000 \.inst 0x00000000 ; undefined |
| 29 | + |
| 30 | +Disassembly of section \.rodata: |
| 31 | + |
| 32 | +0000000000400024 <\.rodata>: |
| 33 | + 400024: 00000004 \.inst 0x00000004 ; undefined |
| 34 | + |
| 35 | +Disassembly of section .global: |
| 36 | + |
| 37 | +0000000000410028 <__data_start>: |
| 38 | + 410028: 00000001 \.inst 0x00000001 ; undefined |
| 39 | + 41002c: 00000000 \.inst 0x00000000 ; undefined |
| 40 | + 410030: 00000001 \.inst 0x00000001 ; undefined |
| 41 | + 410034: 00000000 \.inst 0x00000000 ; undefined |
| 42 | + 410038: 00000001 \.inst 0x00000001 ; undefined |
| 43 | + 41003c: 00000000 \.inst 0x00000000 ; undefined |
0 commit comments