1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
.text .globl _start _start: mov foo@GOTTPOFF(%rip), %eax add foo@GOTTPOFF(%rip), %eax mov foo@GOTTPOFF(%rip), %r8d add foo@GOTTPOFF(%rip), %r8d mov foo@GOTTPOFF(%rip), %r12d add foo@GOTTPOFF(%rip), %r12d .globl foo .section .tdata,"awT",@progbits .align 4 .type foo, @object .size foo, 4 foo: .long 100