Add support for the C_SKY series of processors.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-csky / tls-ld.s
1 .text
2 .global __tls_get_addr
3 .align 2
4 .global foo
5 .type foo, @function
6 foo:
7 push lr, gb
8 lrw t1, .L2@GOTPC
9 grs gb, .L2
10 .L2:
11 addu gb, gb, t1
12 grs a3, .LTLS0
13 .LTLS0:
14 lrw a0, .LANCHOR0@TLSLDM32
15 addu a0, a0, a3
16 lrs.w a3, [__tls_get_addr@PLT]
17 jsr a3
18 lrw a3, .LANCHOR0@TLSLDO32
19 addu a0, a0, a3
20 pop lr, gb
21 .size foo, .-foo
22 .section .tbss,"awT",@nobits
23 .align 2
24 .set .LANCHOR0,. + 0
25 .type var, @object
26 .size var, 4
27 var:
28 .fill 4, 1
This page took 0.030822 seconds and 4 git commands to generate.