1 .section ".tdata", "awT", @progbits
14 /* Main binary, no PIC */
16 addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %edx
18 /* foo can be anywhere in startup TLS */
20 subl foo@GOTTPOFF(%edx), %eax
21 /* %eax now contains &foo */
23 /* bar only in the main program */
26 /* %eax now contains &bar */
28 /* baz only in the main program */
30 /* Arbitrary instructions in between */
33 /* %ecx now contains &baz */
35 /* var and var2 only in the main program */
37 /* Arbitrary instructions in between */
40 leal var@NTPOFF(%ecx), %eax
41 /* Arbitrary instructions in between */
43 leal var2@NTPOFF(%ecx), %edx