bfd/
[binutils.git] / ld / testsuite / ld-m68k / tls-gd-ie-1.s
blob653613786d05fb95b0a5dc9fdaaec7abd1b89b68
1 #NO_APP
2 .text
3 .align 2
4 .globl foo
5 .type foo, @function
6 foo:
7 link.w %fp,#0
8 move.l %a5,-(%sp)
9 move.l #_GLOBAL_OFFSET_TABLE_@GOTPC, %a5
10 lea (-6, %pc, %a5), %a5
12 pea x@TLSGD(%a5)
13 jbsr __tls_get_addr
15 jbsr __m68k_read_tp
16 move.l x@TLSIE(%a5),%a1
17 add.l %a0,%a1
19 move.l (%sp)+,%a5
20 unlk %fp
21 rts
22 .size foo, .-foo
23 .section .note.GNU-stack,"",@progbits