]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-scripts/phdrs.exp
Imported binutils-2.20
[msp430-binutils.git] / ld / testsuite / ld-scripts / phdrs.exp
index bde4f10cf03fa69e6d388acb6eda51e3c6a49c9f..a112d3a62825d6bb6ef0fb8fb3b479d00b866356 100644 (file)
@@ -1,6 +1,6 @@
 # Test PHDRS in a linker script.
 # By Ian Lance Taylor, Cygnus Support.
-#   Copyright 1999, 2000, 2001, 2002, 2003, 2006, 2007
+#   Copyright 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007
 #   Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
@@ -52,13 +52,11 @@ set ldopt "$ldopt -T $srcdir/$subdir/phdrs.t tmpdir/phdrs.o"
 if ![ld_simple_link $ld tmpdir/phdrs $ldopt] {
     fail $testname
 } else {
-    if {[which $objdump] == 0} {
+    if {![is_remote host] && [which $objdump] == 0} {
        unresolved $testname
        return
     }
-
-    verbose -log "$objdump --private tmpdir/phdrs"
-    catch "exec $objdump --private tmpdir/phdrs" exec_output
+    set exec_output [run_host_cmd "$objdump" "--private tmpdir/phdrs"]
     set exec_output [prune_warnings $exec_output]
     verbose -log $exec_output