aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/tls-gdierelax.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-arm/tls-gdierelax.s')
-rw-r--r--ld/testsuite/ld-arm/tls-gdierelax.s34
1 files changed, 34 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/tls-gdierelax.s b/ld/testsuite/ld-arm/tls-gdierelax.s
new file mode 100644
index 0000000..db62008
--- /dev/null
+++ b/ld/testsuite/ld-arm/tls-gdierelax.s
@@ -0,0 +1,34 @@
+ .text
+ .arm
+ .globl foo
+ .type foo, %function
+foo:
+ ldr r0, 1f
+2:
+ blx lib_gd2(tlscall)
+ nop
+
+1:
+ .word lib_gd2(tlsdesc) + (. - 2b)
+
+ .thumb
+ .globl bar
+ .type bar, %function
+bar:
+ ldr r0,1f
+2:
+ blx lib_gd2(tlscall)
+ nop
+
+ .p2align 2
+1:
+ .word lib_gd2(tlsdesc) + (. - 2b + 1)
+
+ .globl _start
+_start:
+
+ .section .tdata,"awT"
+ .global lib_gd2
+lib_gd2:
+ .space 4
+