| 1 | #source: bti-plt-1.s |
| 2 | #as: -mabi=lp64 |
| 3 | #ld: --force-bti --pac-plt -e _start -T bti-plt.ld -L./tmpdir -lbti-plt-so |
| 4 | #objdump: -dr -j .plt |
| 5 | |
| 6 | [^:]*: *file format elf64-.*aarch64 |
| 7 | |
| 8 | Disassembly of section \.plt: |
| 9 | |
| 10 | [0-9]+ <.*>: |
| 11 | .*: d503245f bti c |
| 12 | .*: a9bf7bf0 stp x16, x30, \[sp, #-16\]! |
| 13 | .*: 90000090 adrp x16, 28000 <_GLOBAL_OFFSET_TABLE_> |
| 14 | .*: f9400e11 ldr x17, \[x16, #24\] |
| 15 | .*: 91006210 add x16, x16, #0x18 |
| 16 | .*: d503219f autia1716 |
| 17 | .*: d61f0220 br x17 |
| 18 | .*: d503201f nop |
| 19 | .*: d503201f nop |
| 20 | .*: d503201f nop |
| 21 | |
| 22 | [0-9]+ <.*>: |
| 23 | .*: d503245f bti c |
| 24 | .*: 90000090 adrp x16, 28000 <_GLOBAL_OFFSET_TABLE_> |
| 25 | .*: f9401211 ldr x17, \[x16, #32\] |
| 26 | .*: 91008210 add x16, x16, #0x20 |
| 27 | .*: d503219f autia1716 |
| 28 | .*: d61f0220 br x17 |
| 29 | |
| 30 | [0-9]+ <.*>: |
| 31 | .*: d503245f bti c |
| 32 | .*: 90000090 adrp x16, 28000 <_GLOBAL_OFFSET_TABLE_> |
| 33 | .*: f9401611 ldr x17, \[x16, #40\] |
| 34 | .*: 9100a210 add x16, x16, #0x28 |
| 35 | .*: d503219f autia1716 |
| 36 | .*: d61f0220 br x17 |