1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
.text .globl _start _start: leal foo@TLSGD(%ecx), %eax call *___tls_get_addr@GOT(%ecx) leal foo@TLSGD(%edx), %eax call *___tls_get_addr@GOT(%edx) nop .globl foo .section .tdata,"awT",@progbits .align 4 .type foo, @object .size foo, 4 foo: .long 100