1 .global var
2 .text
3test:
4 ldr x1, .Lgot
5 adr x2, .Lgot
6 add x1, x1, x2
7
8 mrs x2, tpidr_el0
9 movz x0, #:gottprel_g1:var
10 movk x0, #:gottprel_g0_nc:var
11 ldr x0, [x1, x0]
12 add x0, x0, x2
13 nop
14
15.Lgot: .xword _GLOBAL_OFFSET_TABLE_ - .
16