From 1b66220522691049e2a4c477d32fd8bc0f6f63c1 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 1 Oct 2009 23:29:29 +0000 Subject: * 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. --- ld/testsuite/ld-gc/gc.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ld/testsuite/ld-gc/gc.exp') 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*-*-*] { -- cgit v1.1