aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/tls-lib.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-arm/tls-lib.s')
-rw-r--r--ld/testsuite/ld-arm/tls-lib.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/tls-lib.s b/ld/testsuite/ld-arm/tls-lib.s
new file mode 100644
index 0000000..fa928c0
--- /dev/null
+++ b/ld/testsuite/ld-arm/tls-lib.s
@@ -0,0 +1,22 @@
+ .text
+ .globl foo
+ .type foo, %function
+foo:
+ nop
+.L2:
+ nop
+ mov pc, lr
+
+.Lpool:
+ .word lib_gd(tlsgd) + (. - .L2 - 8)
+ .word lib_ld(tlsldm) + (. - .L2 - 8)
+ .word lib_ld(tlsldo)
+
+ .section .tdata,"awT"
+ .global lib_gd
+lib_gd:
+ .space 4
+
+ .global lib_ld
+lib_ld:
+ .space 4