aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/tlslib.s
diff options
context:
space:
mode:
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