diff options
author | Alan Modra <amodra@gmail.com> | 2009-01-12 13:57:59 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-01-12 13:57:59 +0000 |
commit | e497069013ce9d032c86c23a5a818e941c9d2d65 (patch) | |
tree | d15fb3fc5cbdd38533957e308efc0e54e725ca01 /ld/testsuite/ld-scripts | |
parent | 8d8047c402cc77a85d7d3b443ecfb133ff5538cf (diff) | |
download | gdb-e497069013ce9d032c86c23a5a818e941c9d2d65.zip gdb-e497069013ce9d032c86c23a5a818e941c9d2d65.tar.gz gdb-e497069013ce9d032c86c23a5a818e941c9d2d65.tar.bz2 |
* ld-elf/elf.exp: Save and restore LDFLAGS.
* ld-scripts/default-script.exp: Likewise.
* ld-scripts/empty-orphan.exp: Likewise, and add to LDFLAGS rather
than replacing.
* ld-scripts/include.exp: Set --local-store for SPU.
Diffstat (limited to 'ld/testsuite/ld-scripts')
-rw-r--r-- | ld/testsuite/ld-scripts/default-script.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/empty-orphan.exp | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/include.exp | 3 |
3 files changed, 8 insertions, 2 deletions
diff --git a/ld/testsuite/ld-scripts/default-script.exp b/ld/testsuite/ld-scripts/default-script.exp index 202f532..b7d10ed 100644 --- a/ld/testsuite/ld-scripts/default-script.exp +++ b/ld/testsuite/ld-scripts/default-script.exp @@ -19,6 +19,7 @@ # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, # MA 02110-1301, USA. +set old_ldflags $LDFLAGS if { [istarget spu*-*-*] } { set LDFLAGS "$LDFLAGS --local-store 0:0" } @@ -30,3 +31,4 @@ foreach t $test_list { run_dump_test [file rootname $t] } +set LDFLAGS $old_ldflags diff --git a/ld/testsuite/ld-scripts/empty-orphan.exp b/ld/testsuite/ld-scripts/empty-orphan.exp index 59a51a8..cc0374f 100644 --- a/ld/testsuite/ld-scripts/empty-orphan.exp +++ b/ld/testsuite/ld-scripts/empty-orphan.exp @@ -25,10 +25,13 @@ if ![is_elf_format] { return } +set old_ldflags $LDFLAGS if { [istarget spu*-*-*] } { - set LDFLAGS "--local-store 0:0" + set LDFLAGS "$LDFLAGS --local-store 0:0" } set testname "empty-orphan" run_dump_test empty-orphan + +set LDFLAGS $old_ldflags diff --git a/ld/testsuite/ld-scripts/include.exp b/ld/testsuite/ld-scripts/include.exp index 98fd55d..eec5fd8 100644 --- a/ld/testsuite/ld-scripts/include.exp +++ b/ld/testsuite/ld-scripts/include.exp @@ -26,7 +26,7 @@ if [is_aout_format] { set old_ldflags $LDFLAGS if { [istarget spu*-*-*] } { - set LDFLAGS "$LDFLAGS --no-overlays" + set LDFLAGS "$LDFLAGS --local-store 0:0 --no-overlays" } set test_list [lsort [glob -nocomplain $srcdir/$subdir/include*.d]] @@ -36,4 +36,5 @@ foreach test_file $test_list { verbose $test_name run_dump_test $test_name } + set LDFLAGS $old_ldflags |