1 .section .tdata 2var: 3 .word 2 4 5 .text 6test: 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_ - . 20