aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/tls-lib-loc.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-arm/tls-lib-loc.s')
-rw-r--r--ld/testsuite/ld-arm/tls-lib-loc.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/tls-lib-loc.s b/ld/testsuite/ld-arm/tls-lib-loc.s
new file mode 100644
index 0000000..a0e4dc7
--- /dev/null
+++ b/ld/testsuite/ld-arm/tls-lib-loc.s
@@ -0,0 +1,14 @@
+ .text
+ .arm
+
+foo:
+ ldr r0,1f
+2: blx loc(tlscall)
+ nop
+
+ .p2align 2
+1: .word loc(tlsdesc) + (. - 2b)
+
+ .section .tdata,"awT"
+loc:
+ .space 4