summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/ld/testsuite/ld-sh
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/ld/testsuite/ld-sh')
-rw-r--r--gnu/usr.bin/binutils/ld/testsuite/ld-sh/sh.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/ld/testsuite/ld-sh/sh.exp b/gnu/usr.bin/binutils/ld/testsuite/ld-sh/sh.exp
index 3bd2a654e7a..36e12cc1c0a 100644
--- a/gnu/usr.bin/binutils/ld/testsuite/ld-sh/sh.exp
+++ b/gnu/usr.bin/binutils/ld/testsuite/ld-sh/sh.exp
@@ -103,7 +103,7 @@ if { [which $CC] == 0 } {
}
if {![ld_assemble $as "-relax $srcdir$subdir/start.s" tmpdir/start.o] \
- || ![ld_compile $CC "-mrelax $srcdir$subdir/sh2.c" tmpdir/sh2.o]} {
+ || ![ld_compile $CC "-O -mrelax $srcdir$subdir/sh2.c" tmpdir/sh2.o]} {
unresolved $testlink
unresolved $testjsr
unresolved $testrun