aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/tlsgd1.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-i386/tlsgd1.s')
-rw-r--r--ld/testsuite/ld-i386/tlsgd1.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/tlsgd1.s b/ld/testsuite/ld-i386/tlsgd1.s
new file mode 100644
index 0000000..2b3ed0e
--- /dev/null
+++ b/ld/testsuite/ld-i386/tlsgd1.s
@@ -0,0 +1,12 @@
+ .text
+ .globl _start
+_start:
+ leal foo@TLSGD(,%ebx,1), %eax
+ call ___tls_get_addr
+ .globl foo
+ .section .tdata,"awT",@progbits
+ .align 4
+ .type foo, @object
+ .size foo, 4
+foo:
+ .long 100