]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-undefined/weak-undef.exp
Merge commit 'upstream/2.20'
[msp430-binutils.git] / ld / testsuite / ld-undefined / weak-undef.exp
index 00c016a273c3bb9b2b07200a6eb2e8e02252cac6..a4f35e4189d3cd3b1a79df2486fc6fa7790467cd 100644 (file)
@@ -1,5 +1,5 @@
 # Test handling of weak undefined symbols
-#   Copyright 2001, 2002, 2004, 2007
+#   Copyright 2001, 2002, 2004, 2005, 2007
 #   Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
@@ -66,13 +66,12 @@ set output_regexp \
 if {! [ld_simple_link $ld tmpdir/weak-undef "$flags tmpdir/weak-undef.o -T $srcdir/$subdir/weak-undef.t"] } then {
     fail $testname
 } else {
-    if {[which $objdump] == 0} then {
+    if {![is_remote host] && [which $objdump] == 0} then {
        unresolved $testname
        return
     }
 
-    verbose -log "$objdump -s tmpdir/weak-undef"
-    catch "exec $objdump -s tmpdir/weak-undef" exec_output
+    set exec_output [run_host_cmd "$objdump" "-s tmpdir/weak-undef"]
     set exec_output [prune_warnings $exec_output]
     verbose -log $exec_output