]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-sparc/tlspie64.s
4d38d307cb6bb91a206d10f6314c4355bd09e932
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-sparc / tlspie64.s
1 .section ".text"
2 .global tls_gd
3 .section .tbss,"awT",@nobits
4 .align 4
5 .type tls_gd, #object
6 .size tls_gd, 4
7 tls_gd:
8 .skip 4
9 .section ".text"
10 .align 4
11 .global get_gdp
12 .type get_gdp, #function
13 .proc 0104
14 get_gdp:
15 sethi %tgd_hi22(tls_gd), %g1
16 add %g1, %tgd_lo10(tls_gd), %g1
17 add %l7, %g1, %o0, %tgd_add(tls_gd)
18 call __tls_get_addr, %tgd_call(tls_gd)
19 nop
20 .size get_gdp, .-get_gdp