summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-vxworks
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-vxworks')
-rw-r--r--ld/testsuite/ld-vxworks/tls-3.d7
-rw-r--r--ld/testsuite/ld-vxworks/tls-3.s34
2 files changed, 41 insertions, 0 deletions
diff --git a/ld/testsuite/ld-vxworks/tls-3.d b/ld/testsuite/ld-vxworks/tls-3.d
new file mode 100644
index 00000000000..53f7e8174c1
--- /dev/null
+++ b/ld/testsuite/ld-vxworks/tls-3.d
@@ -0,0 +1,7 @@
+# source: tls-3.s
+# ld: -shared -z now
+# objdump: -R
+
+#...
+DYNAMIC RELOCATION RECORDS \(none\)
+
diff --git a/ld/testsuite/ld-vxworks/tls-3.s b/ld/testsuite/ld-vxworks/tls-3.s
new file mode 100644
index 00000000000..39420c2c8d1
--- /dev/null
+++ b/ld/testsuite/ld-vxworks/tls-3.s
@@ -0,0 +1,34 @@
+ .globl foo
+foo:
+
+ .section .tls_data,"a"
+ .p2align 2
+
+ .type i,%object
+ .size i,4
+i:
+ .space 4
+
+ .globl j
+ .type j,%object
+ .size j,4
+j:
+ .space 4
+
+ .section .tls_vars,"a"
+ .p2align 2
+ .type __tls__i,%object
+ .size __tls__i,12
+__tls__i:
+ .4byte i
+ .4byte 0
+ .4byte 4
+
+ .globl __tls__j
+ .type __tls__j,%object
+ .size __tls__j,12
+__tls__j:
+ .4byte j
+ .4byte 0
+ .4byte 4
+