diff options
author | Nick Clifton <nickc@redhat.com> | 2000-12-09 23:44:17 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-12-09 23:44:17 +0000 |
commit | f66736412d0306b6044114cb75d71d0d5339ddd5 (patch) | |
tree | 5289e6990c8f2e8c6d654c715e2ab847d4b1c6e5 /ld | |
parent | 968fa2cc736e24a68d36da6767ccd2a99a00ea02 (diff) | |
download | gdb-f66736412d0306b6044114cb75d71d0d5339ddd5.zip gdb-f66736412d0306b6044114cb75d71d0d5339ddd5.tar.gz gdb-f66736412d0306b6044114cb75d71d0d5339ddd5.tar.bz2 |
Fix v850 test failures
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-selective/selective.exp | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index ff91759..feca9e1 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,7 @@ 2000-12-09 Nick Clifton <nickc@redhat.com> + * ld-selective/selective.exp: Link in libgcc when target is v850. + * ld-srec/srec.exp: Expect the srec_test to fail for ARM targets because the -oformat linker command switch cannot be used. diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp index 07113a2..0df21f8 100644 --- a/ld/testsuite/ld-selective/selective.exp +++ b/ld/testsuite/ld-selective/selective.exp @@ -41,7 +41,7 @@ set seltests { {selective1 C 1.c {} {} {dropme1 dropme2} {}} {selective2 C 2.c {} {} {foo} {}} {selective3 C 2.c {-u foo} {foo} {{foo 0}} {}} - {selective4 C++ 3.cc {} {start foo__1A foo__1B} {bar__1A} {v850*-*-elf}} + {selective4 C++ 3.cc {} {start foo__1A foo__1B} {bar__1A} {}} {selective5 C++ 4.cc {} {} {foo__1B foo__1A} {}} {selective6 C++ 5.cc {} {} {foo__1B foo__1A dropme1__Fv dropme2__Fv} {*-*-*}} } @@ -90,6 +90,11 @@ foreach testitem $seltests { return } + # V850 targets need libgcc.a + if [istarget v850*-*-elf] { + set objfile "$objfile -L ../gcc -lgcc" + } + if ![ld_simple_link $ld $ldfile "$ldflags [join $ldargs] $objfile"] { fail $testname continue |