* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / tlspic.s
1 .section ".tdata", "awT", @progbits
2 .globl foo
3 foo: .long 25
4 .text
5 .globl fn
6 .type fn,@function
7 fn:
8 pushl %ebp
9 movl %esp, %ebp
10 pushl %ebx
11 pushl %eax
12 call 1f
13 1: popl %ebx
14 addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx
15
16 /* foo can be anywhere in the startup TLS */
17 movl %gs:0, %eax
18
19 /* Arbitrary instructions in between */
20 leal 0(%esi, 1), %esi
21
22 subl foo@GOTTPOFF(%ebx), %eax
23 /* %eax now contains &foo */
24
25 movl -4(%ebp), %ebx
26 leave
27 ret
This page took 0.031458 seconds and 4 git commands to generate.