aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/tlslib.s
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-02-04 14:52:11 +0000
committerAlan Modra <amodra@gmail.com>2003-02-04 14:52:11 +0000
commit266fb683100e69fad79f5bb7ed260de5e2eff655 (patch)
treec0a80c9c99ab46f4863613abc2744070bc305a78 /ld/testsuite/ld-powerpc/tlslib.s
parente0468e59ad8adedb96443dc4ea280a7b4cd35463 (diff)
downloadgdb-266fb683100e69fad79f5bb7ed260de5e2eff655.zip
gdb-266fb683100e69fad79f5bb7ed260de5e2eff655.tar.gz
gdb-266fb683100e69fad79f5bb7ed260de5e2eff655.tar.bz2
new ppc64 tls tests
Diffstat (limited to 'ld/testsuite/ld-powerpc/tlslib.s')
-rw-r--r--ld/testsuite/ld-powerpc/tlslib.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/tlslib.s b/ld/testsuite/ld-powerpc/tlslib.s
new file mode 100644
index 0000000..299bb27
--- /dev/null
+++ b/ld/testsuite/ld-powerpc/tlslib.s
@@ -0,0 +1,20 @@
+ .global .__tls_get_addr,__tls_get_addr,gd,ld
+
+ .section ".opd","aw",@progbits
+__tls_get_addr:
+ .align 3
+ .quad .__tls_get_addr
+ .quad .TOC.@tocbase
+ .quad 0
+
+ .section ".tbss","awT",@nobits
+ .align 3
+gd: .space 8
+
+ .section ".tdata","awT",@progbits
+ .align 2
+ld: .long 0xc0ffee
+
+ .text
+.__tls_get_addr:
+ blr