]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-aarch64/morello-tlsle.s
Add linker tests for TLS changes
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / morello-tlsle.s
CommitLineData
a7442448
MM
1 .global p
2 .global a
3 .section .tbss,"awT",%nobits
4p:
5 .zero 65540
6a:
7 .zero 65540
8 .zero 52
9 .size a,65592
10b:
11 .zero 100
12 .size b,100
13 .text
14
15# Compute the address of an integer within structure a, padded
16# by an array of size 48
17
18 .align 2
19 .p2align 4,,11
20 .global _start
21 .type _start,%function
22_start:
23 movz x2, #:tprel_g1:a
24 movk x2, #:tprel_g0_nc:a
25 movz x1, #:size_g1:a
26 movk x1, #:size_g0_nc:a
27
28 movz x2, #:tprel_g1:b
29 movk x2, #:tprel_g0_nc:b
30 movz x1, #:size_g1:b
31 movk x1, #:size_g0_nc:b
32
33 mrs c0, ctpidr_el0
34 add c0, c0, x2
35 scbnds c0, c0, x1
36 ldr w0, [c0]
37 ret