diff options
author | Alan Modra <amodra@gmail.com> | 2011-07-14 06:49:45 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-07-14 06:49:45 +0000 |
commit | 29e045d58b27dbe405e9735a0af667ca501915d0 (patch) | |
tree | db0ee48dbff0f24b8ad622012586ad18b70baa3a /ld | |
parent | cbde55ab5d30a4c44d84301527417bbef611eeef (diff) | |
download | gdb-29e045d58b27dbe405e9735a0af667ca501915d0.zip gdb-29e045d58b27dbe405e9735a0af667ca501915d0.tar.gz gdb-29e045d58b27dbe405e9735a0af667ca501915d0.tar.bz2 |
* ld-scripts/section-flags.exp: Pass --local-store 0:0 for
spu. Rewrite using foreach.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/section-flags.exp | 41 |
2 files changed, 20 insertions, 26 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 60b57ed..ee6987fa 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2011-07-14 Alan Modra <amodra@gmail.com> + * ld-scripts/section-flags.exp: Pass --local-store 0:0 for + spu. Rewrite using foreach. + +2011-07-14 Alan Modra <amodra@gmail.com> + * ld-powerpc/tlsexe.d, * ld-powerpc/tlsexe.g. *ld-powerpc/tlsexe.r, * ld-powerpc/tlsexetoc.d, * ld-powerpc/tlsexetoc.g, * ld-powerpc/tlsexetoc.r, * ld-powerpc/tlsso.d, diff --git a/ld/testsuite/ld-scripts/section-flags.exp b/ld/testsuite/ld-scripts/section-flags.exp index 700c3d3..4186449 100644 --- a/ld/testsuite/ld-scripts/section-flags.exp +++ b/ld/testsuite/ld-scripts/section-flags.exp @@ -17,36 +17,25 @@ # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, # MA 02110-1301, USA. -set testname "SECTION_FLAGS-1" - - -# This test only works for ELF targets +# These tests only work for ELF targets if {! [is_elf_format]} { - unsupported $testname - return -} - -if ![ld_assemble $as $srcdir/$subdir/section-flags-1.s tmpdir/section-flags-1.o] { - unresolved $testname - return -} - -if ![ld_simple_link $ld tmpdir/section-flags-1 "-T $srcdir/$subdir/section-flags-1.t tmpdir/section-flags-1.o"] { - fail $testname return } -pass $testname - -set testname "SECTION_FLAGS-2" -if ![ld_assemble $as $srcdir/$subdir/section-flags-2.s tmpdir/section-flags-2.o] { - unresolved $testname - return +set ldcmd $ld +if { [istarget spu*-*-*] } { + set ldcmd "$ldcmd --local-store 0:0" } -if ![ld_simple_link $ld tmpdir/section-flags-2 "-T $srcdir/$subdir/section-flags-2.t tmpdir/section-flags-1.o tmpdir/section-flags-2.o"] { - fail $testname - return +foreach test {"section-flags-1" "section-flags-2"} { + if ![ld_assemble $as $srcdir/$subdir/$test.s tmpdir/$test.o] { + unresolved $test + } else { + if ![ld_simple_link $ldcmd tmpdir/$test \ + "-T $srcdir/$subdir/$test.t tmpdir/$test.o"] { + fail $test + } else { + pass $test + } + } } - -pass $testname |