aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-vxworks/tls-1.s
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2007-11-07 12:10:33 +0000
committerNathan Sidwell <nathan@codesourcery.com>2007-11-07 12:10:33 +0000
commitabbda6d05d1dfded890bf0a05dda61e55cf22223 (patch)
tree1ba1e6e306caf2d37052fb62f29f31b868f46d35 /ld/testsuite/ld-vxworks/tls-1.s
parentfff279a794cac522ce91ab446f352079f898d438 (diff)
downloadgdb-abbda6d05d1dfded890bf0a05dda61e55cf22223.zip
gdb-abbda6d05d1dfded890bf0a05dda61e55cf22223.tar.gz
gdb-abbda6d05d1dfded890bf0a05dda61e55cf22223.tar.bz2
ld/
* emulparams/vxworks.sh (OTHER_READONLY_SECTIONS, OTHER_READWRITE_SECTIONS): Add TLS sections. ld/testsuite/ * ld-vxworks/tls-1.d: New. * ld-vxworks/tls-1.s: New.
Diffstat (limited to 'ld/testsuite/ld-vxworks/tls-1.s')
-rw-r--r--ld/testsuite/ld-vxworks/tls-1.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-vxworks/tls-1.s b/ld/testsuite/ld-vxworks/tls-1.s
new file mode 100644
index 0000000..8fa97ab
--- /dev/null
+++ b/ld/testsuite/ld-vxworks/tls-1.s
@@ -0,0 +1,19 @@
+ .globl foo
+foo:
+
+ .section .tls_data
+ .p2align 2
+ .type i,%object
+ .size i,4
+i:
+ .space 4
+ .globl __tls__i
+ .section .tls_vars
+ .p2align 2
+ .type __tls__i,%object
+ .size __tls__i,12
+__tls__i:
+ .4byte i
+ .4byte 0
+ .4byte 4
+