aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cris/tls-gdgotrelm.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-cris/tls-gdgotrelm.s')
-rw-r--r--ld/testsuite/ld-cris/tls-gdgotrelm.s28
1 files changed, 28 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cris/tls-gdgotrelm.s b/ld/testsuite/ld-cris/tls-gdgotrelm.s
new file mode 100644
index 0000000..50310ea
--- /dev/null
+++ b/ld/testsuite/ld-cris/tls-gdgotrelm.s
@@ -0,0 +1,28 @@
+ .text
+
+ .ifndef r
+ .set r,1
+ .endif
+
+ .macro doit
+ .global tlsdsofngdgotrelm\@
+ .type tlsdsofngdgotrelm\@,@function
+ .p2align 1
+tlsdsofngdgotrelm\@:
+ move.w x\@:GDGOTREL16,$r10
+.Lfe\@:
+ .size tlsdsofngdgotrelm\@,.Lfe\@-tlsdsofngdgotrelm\@
+
+ .globl x\@
+ .section .tdata,"awT",@progbits
+ .p2align 0
+ .type x\@, @object
+ .size x\@, 1
+x\@:
+ .byte 40
+ .previous
+ .endm
+
+ .rept r
+ doit
+ .endr