diff options
author | Ben Cheng <bccheng@google.com> | 2014-03-26 11:03:35 -0700 |
---|---|---|
committer | Ben Cheng <bccheng@google.com> | 2014-03-26 11:03:35 -0700 |
commit | 09797ba54abf3683ea66eedddf6afbe7653f9cb9 (patch) | |
tree | 8030b2ed79c7463c89d6da294782e9d503c84f50 /binutils-2.24/ld/testsuite/ld-vxworks | |
parent | 5a2caf34e4995860baf405552163df288000b7bf (diff) | |
download | toolchain_binutils-09797ba54abf3683ea66eedddf6afbe7653f9cb9.zip toolchain_binutils-09797ba54abf3683ea66eedddf6afbe7653f9cb9.tar.gz toolchain_binutils-09797ba54abf3683ea66eedddf6afbe7653f9cb9.tar.bz2 |
Initial checkin of binutils 2.24.
Change-Id: I0dfcbae6608dded6c3586bf5f4ac27e9612e70a2
Diffstat (limited to 'binutils-2.24/ld/testsuite/ld-vxworks')
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/plt-mips1.d | 10 | ||||
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/plt-mips1.s | 1 | ||||
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/rpath-1.d | 6 | ||||
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/rpath-1.s | 2 | ||||
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/tls-1.d | 25 | ||||
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/tls-1.s | 19 | ||||
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/tls-2.d | 11 | ||||
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/tls-2.s | 19 | ||||
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/tls-3.d | 7 | ||||
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/tls-3.s | 34 | ||||
-rw-r--r-- | binutils-2.24/ld/testsuite/ld-vxworks/vxworks.exp | 27 |
11 files changed, 161 insertions, 0 deletions
diff --git a/binutils-2.24/ld/testsuite/ld-vxworks/plt-mips1.d b/binutils-2.24/ld/testsuite/ld-vxworks/plt-mips1.d new file mode 100644 index 0000000..ed67415 --- /dev/null +++ b/binutils-2.24/ld/testsuite/ld-vxworks/plt-mips1.d @@ -0,0 +1,10 @@ +# target: mips*-*-* +# source: plt-mips1.s +# ld: -shared -z now +# readelf: -s + +#... + +[0-9]*: 00000000 +0 +FUNC +GLOBAL +DEFAULT +UND Foo +#... + +[0-9]*: 00000000 +0 +FUNC +GLOBAL +DEFAULT +UND Foo +#... diff --git a/binutils-2.24/ld/testsuite/ld-vxworks/plt-mips1.s b/binutils-2.24/ld/testsuite/ld-vxworks/plt-mips1.s new file mode 100644 index 0000000..2f79504 --- /dev/null +++ b/binutils-2.24/ld/testsuite/ld-vxworks/plt-mips1.s @@ -0,0 +1 @@ + lw $25,%call16(Foo)($28) diff --git a/binutils-2.24/ld/testsuite/ld-vxworks/rpath-1.d b/binutils-2.24/ld/testsuite/ld-vxworks/rpath-1.d new file mode 100644 index 0000000..df67a03 --- /dev/null +++ b/binutils-2.24/ld/testsuite/ld-vxworks/rpath-1.d @@ -0,0 +1,6 @@ +# source: rpath-1.s +# ld: --entry foo --rpath /dir1 --rpath /dir2 --rpath net:/dir4 --rpath /dir2 --rpath /dir1 --rpath /dir3 --force-dynamic -q +# readelf: -d +#... + 0x0+f \(RPATH\).*Library rpath: \[/dir1;/dir2;net:/dir4;/dir3\] +#pass diff --git a/binutils-2.24/ld/testsuite/ld-vxworks/rpath-1.s b/binutils-2.24/ld/testsuite/ld-vxworks/rpath-1.s new file mode 100644 index 0000000..6218588 --- /dev/null +++ b/binutils-2.24/ld/testsuite/ld-vxworks/rpath-1.s @@ -0,0 +1,2 @@ + .global foo +foo: diff --git a/binutils-2.24/ld/testsuite/ld-vxworks/tls-1.d b/binutils-2.24/ld/testsuite/ld-vxworks/tls-1.d new file mode 100644 index 0000000..cb5e695 --- /dev/null +++ b/binutils-2.24/ld/testsuite/ld-vxworks/tls-1.d @@ -0,0 +1,25 @@ +# source: tls-1.s +# ld: --entry foo -q +# nm: -r + +#... +[0-9a-f]+ N __wrs_rtp_tls_vars_start +#... +0000000c A __wrs_rtp_tls_vars_size +#... +[0-9a-f]+ N __wrs_rtp_tls_data_start +#... +00000004 A __wrs_rtp_tls_data_size +#... +00000004 A __wrs_rtp_tls_data_align +#... +[0-9a-f]+ N ___wrs_rtp_tls_vars_start +#... +0000000c A ___wrs_rtp_tls_vars_size +#... +[0-9a-f]+ N ___wrs_rtp_tls_data_start +#... +00000004 A ___wrs_rtp_tls_data_size +#... +00000004 A ___wrs_rtp_tls_data_align +#pass diff --git a/binutils-2.24/ld/testsuite/ld-vxworks/tls-1.s b/binutils-2.24/ld/testsuite/ld-vxworks/tls-1.s new file mode 100644 index 0000000..8fa97ab --- /dev/null +++ b/binutils-2.24/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 + diff --git a/binutils-2.24/ld/testsuite/ld-vxworks/tls-2.d b/binutils-2.24/ld/testsuite/ld-vxworks/tls-2.d new file mode 100644 index 0000000..4278355 --- /dev/null +++ b/binutils-2.24/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/binutils-2.24/ld/testsuite/ld-vxworks/tls-2.s b/binutils-2.24/ld/testsuite/ld-vxworks/tls-2.s new file mode 100644 index 0000000..8fa97ab --- /dev/null +++ b/binutils-2.24/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 + diff --git a/binutils-2.24/ld/testsuite/ld-vxworks/tls-3.d b/binutils-2.24/ld/testsuite/ld-vxworks/tls-3.d new file mode 100644 index 0000000..53f7e81 --- /dev/null +++ b/binutils-2.24/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/binutils-2.24/ld/testsuite/ld-vxworks/tls-3.s b/binutils-2.24/ld/testsuite/ld-vxworks/tls-3.s new file mode 100644 index 0000000..39420c2 --- /dev/null +++ b/binutils-2.24/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 + diff --git a/binutils-2.24/ld/testsuite/ld-vxworks/vxworks.exp b/binutils-2.24/ld/testsuite/ld-vxworks/vxworks.exp new file mode 100644 index 0000000..a305265 --- /dev/null +++ b/binutils-2.24/ld/testsuite/ld-vxworks/vxworks.exp @@ -0,0 +1,27 @@ +# Expect script for VxWorks tests +# Copyright 2007 Free Software Foundation, Inc. +# +# This file is part of the GNU Binutils. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, +# MA 02110-1301, USA. + +if { [istarget *-*-vxworks*] } { + foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.d]] { + if { [runtest_file_p $runtests $test] } { + run_dump_test [file rootname $test] + } + } +} |