aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-gc/gc.exp
diff options
context:
space:
mode:
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*-*-*] {