diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2009-09-15 02:02:48 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2009-09-15 02:02:48 +0000 |
commit | c20da5c59ee13baa152624e9bbb4954e8bcc8949 (patch) | |
tree | df9305866e9622d0612789773cc86ca1be4aaf46 /ld/testsuite/ld-gc | |
parent | 31dc4a076ba761322d40556286d2b641f007fc44 (diff) | |
download | binutils-redhat-c20da5c59ee13baa152624e9bbb4954e8bcc8949.tar.gz |
* ld-elfcomm/elfcomm.exp: Add appropriate emulation option
for sh64*-*-*.
* ld-gc/gc.exp (test_gc): Likewise.
Diffstat (limited to 'ld/testsuite/ld-gc')
-rw-r--r-- | ld/testsuite/ld-gc/gc.exp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ld/testsuite/ld-gc/gc.exp b/ld/testsuite/ld-gc/gc.exp index 400e989606..648f732713 100644 --- a/ld/testsuite/ld-gc/gc.exp +++ b/ld/testsuite/ld-gc/gc.exp @@ -1,5 +1,5 @@ # Expect script for ld-gc tests -# Copyright 2008 +# Copyright 2008, 2009 # Free Software Foundation, Inc. # # This file is part of the GNU Binutils. @@ -44,8 +44,18 @@ proc test_gc { testname filename linker ldflags} { } set outfile "tmpdir/$filename" + set options "-L$srcdir/$subdir $ldflags $objfile" - if ![ld_simple_link $linker $outfile "-L$srcdir/$subdir $ldflags $objfile"] { + # SH64 targets needs an extra ld option for this test. + if [istarget sh64*-*-*] { + if [istarget sh64*l*-*-*] { + set options "-mshlelf32 $options" + } else { + set options "-mshelf32 $options" + } + } + + if ![ld_simple_link $linker $outfile $options] { fail $testname return } |