aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-gc/gc.exp
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-10-01 23:29:29 +0000
committerAlan Modra <amodra@gmail.com>2009-10-01 23:29:29 +0000
commit1b66220522691049e2a4c477d32fd8bc0f6f63c1 (patch)
treef083703c71941ff1fe18c1e03a447d5d4e141597 /ld/testsuite/ld-gc/gc.exp
parentc838b5167a2935819e0d2f17175aeec9d4199148 (diff)
downloadgdb-1b66220522691049e2a4c477d32fd8bc0f6f63c1.zip
gdb-1b66220522691049e2a4c477d32fd8bc0f6f63c1.tar.gz
gdb-1b66220522691049e2a4c477d32fd8bc0f6f63c1.tar.bz2
* lib/ld-lib.exp (ld_simple_link_defsyms): New proc, adding
powerpc-*-rtems to code setting symbols, extracted from.. * ld-srec/srec.exp (run_srec_test): ..here. Correct flags for sh64. * ld-gc/gc.exp (test_gc): Use ld_simple_link_defsyms.
Diffstat (limited to 'ld/testsuite/ld-gc/gc.exp')
-rw-r--r--ld/testsuite/ld-gc/gc.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/testsuite/ld-gc/gc.exp b/ld/testsuite/ld-gc/gc.exp
index 648f732..c85d4f2 100644
--- a/ld/testsuite/ld-gc/gc.exp
+++ b/ld/testsuite/ld-gc/gc.exp
@@ -44,7 +44,8 @@ proc test_gc { testname filename linker ldflags} {
}
set outfile "tmpdir/$filename"
- set options "-L$srcdir/$subdir $ldflags $objfile"
+ set options "-L$srcdir/$subdir"
+ append options " " $ldflags " " [ld_simple_link_defsyms] " " $objfile
# SH64 targets needs an extra ld option for this test.
if [istarget sh64*-*-*] {