1 .text 2 .globl _start 3_start: 41: movabsq $_GLOBAL_OFFSET_TABLE_-1b, %r11 5 pushq %rbx 6 pushq %rbx 7 leaq 1b(%rip), %rbx 8 addq %r11, %rbx 9 10 /* LD, -mcmodel=large */ 11 leaq foo@tlsld(%rip), %rdi 12 movabsq $__tls_get_addr@pltoff, %rax 13 addq %rbx, %rax 14 call *%rax 15 16 movl foo@dtpoff(%rax), %eax 17 18 popq %rbx 19 popq %rbx 20 ret 21 .globl foo 22 .section .tdata,"awT",@progbits 23 .align 4 24 .type foo, @object 25 .size foo, 4 26foo: 27 .long 100 28