aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/tls-thumb1.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-arm/tls-thumb1.s')
-rw-r--r--ld/testsuite/ld-arm/tls-thumb1.s43
1 files changed, 43 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/tls-thumb1.s b/ld/testsuite/ld-arm/tls-thumb1.s
new file mode 100644
index 0000000..634511e
--- /dev/null
+++ b/ld/testsuite/ld-arm/tls-thumb1.s
@@ -0,0 +1,43 @@
+ .arch armv4t
+ .syntax unified
+ .text
+text:
+ .arm
+ ldr r0,1f
+2: bl +loc(tlscall)
+ nop
+ .p2align 2
+1: .word loc(tlsdesc) + (. - 2b)
+
+ .thumb
+ ldr r0,1f
+2: bl +loc(tlscall)
+ nop
+ .p2align 2
+1: .word loc(tlsdesc) + (. - 2b + 1)
+
+ .section ".foo","ax"
+foo:
+ .arm
+ ldr r0,1f
+2: bl +loc(tlscall)
+ nop
+ .p2align 2
+1: .word loc(tlsdesc) + (. - 2b)
+
+ .arm
+ ldr r0,1f
+2: bl +glob(tlscall)
+ nop
+ .p2align 2
+1: .word glob(tlsdesc) + (. - 2b)
+
+ .thumb
+ ldr r0,1f
+2: bl +loc(tlscall)
+ nop
+ .p2align 2
+1: .word loc(tlsdesc) + (. - 2b + 1)
+
+ .section .tdata,"awT"
+loc: .space 4