]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-aarch64/morello-illegal-tls-pde.s
Add linker tests for TLS changes
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / morello-illegal-tls-pde.s
CommitLineData
a7442448
MM
1 .section .tbss,"awT",@nobits
2 .align 2
3 .type w, %object
4 .size w, 4
5w:
6 .zero 4
7 .align 2
8 .global exec_sym
9 .type exec_sym, %object
10 .size exec_sym, 4
11exec_sym:
12 .zero 4
13
14 .text
15 .align 2
16 .global _start
17 .type _start, %function
18_start:
19 ret
20load_w:
21 # A local exec load of a symbol defined in a different shared library
22 # should be an error.
23 mrs c0, ctpidr_el0
24 movz x1, #:tprel_g1:w1
25 movk x1, #:tprel_g0_nc:w1
26 add c0, c0, x1
27 movz x1, #:size_g1:w1
28 movk x1, #:size_g0_nc:w1
29 scbnds c0, c0, x1
30 ldr w0, [c0]
31 ret
32 .size _start, .-_start
33