Commit | Line | Data |
---|---|---|
8bf6d176 | 1 | #name: Check -z force-bti emits BTI PLT (exec) |
37c18eed | 2 | #source: bti-plt-1.s |
3c3358ca | 3 | #target: [check_shared_lib_support] |
37c18eed | 4 | #as: -mabi=lp64 |
8bf6d176 | 5 | #ld: -z force-bti -e _start -T bti-plt.ld -L./tmpdir -lbti-plt-so |
37c18eed SD |
6 | #objdump: -dr -j .plt |
7 | ||
8 | [^:]*: *file format elf64-.*aarch64 | |
9 | ||
10 | Disassembly of section \.plt: | |
11 | ||
12 | [0-9]+ <.*>: | |
13 | .*: d503245f bti c | |
14 | .*: a9bf7bf0 stp x16, x30, \[sp, #-16\]! | |
15 | .*: 90000090 adrp x16, 28000 <_GLOBAL_OFFSET_TABLE_> | |
16 | .*: f9400e11 ldr x17, \[x16, #24\] | |
17 | .*: 91006210 add x16, x16, #0x18 | |
18 | .*: d61f0220 br x17 | |
19 | .*: d503201f nop | |
20 | .*: d503201f nop | |
37c18eed SD |
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 | .*: d61f0220 br x17 | |
68bb0359 | 28 | .*: d503201f nop |
37c18eed SD |
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 | .*: d61f0220 br x17 | |
68bb0359 | 36 | .*: d503201f nop |