Commit | Line | Data |
---|---|---|
ac734732 RL |
1 | .section .tdata |
2 | var: | |
3 | .word 2 | |
4 | ||
5 | .text | |
6 | test: | |
7 | ldr x1, .Lgot | |
8 | adr x2, .Lgot | |
9 | add x1, x2, x1 | |
10 | ||
11 | movz x0, #:tlsgd_g1:var | |
12 | movk x0, #:tlsgd_g0_nc:var | |
13 | add x0, x1, x0 | |
14 | bl __tls_get_addr | |
15 | nop | |
16 | ldr w0, [x0] | |
17 | ||
18 | .Lgot: | |
19 | .dword _GLOBAL_OFFSET_TABLE_ - . |