diff options
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-vxworks/tls-2.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-vxworks/tls-2.s | 19 |
3 files changed, 35 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 4da2964..0805299 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-11-08 Nathan Sidwell <nathan@codesourcery.com> + + * ld-vxworks/tls-2.d: New. + * ld-vxworks/tls-2.s: New. + 2007-11-07 Nathan Sidwell <nathan@codesourcery.com> * ld-vxworks/tls-1.d: New. diff --git a/ld/testsuite/ld-vxworks/tls-2.d b/ld/testsuite/ld-vxworks/tls-2.d new file mode 100644 index 0000000..4278355 --- /dev/null +++ b/ld/testsuite/ld-vxworks/tls-2.d @@ -0,0 +1,11 @@ +# source: tls-2.s +# ld: --entry foo -q --force-dynamic +# readelf: -d + +#... + 0x60000010 \(Operating System specific: 60000010\) 0x[0-9a-f]+ + 0x60000011 \(Operating System specific: 60000011\) 0x4 + 0x60000015 \(Operating System specific: 60000015\) 0x4 + 0x60000012 \(Operating System specific: 60000012\) 0x[0-9a-f]+ + 0x60000013 \(Operating System specific: 60000013\) 0xc +#... diff --git a/ld/testsuite/ld-vxworks/tls-2.s b/ld/testsuite/ld-vxworks/tls-2.s new file mode 100644 index 0000000..8fa97ab --- /dev/null +++ b/ld/testsuite/ld-vxworks/tls-2.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 + |