X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-pie%2Fpie.exp;fp=ld%2Ftestsuite%2Fld-pie%2Fpie.exp;h=19a2ac01c40b2fb6f0f43b73d13e76e495fd00d4;hp=064d9cd732c07c3f921308211f4e9fcba62fbc34;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/ld/testsuite/ld-pie/pie.exp b/ld/testsuite/ld-pie/pie.exp index 064d9cd..19a2ac0 100644 --- a/ld/testsuite/ld-pie/pie.exp +++ b/ld/testsuite/ld-pie/pie.exp @@ -1,5 +1,5 @@ # Expect script for various PIE tests. -# Copyright 2006, 2007 Free Software Foundation, Inc. +# Copyright 2006, 2007, 2009 Free Software Foundation, Inc. # # This file is part of the GNU Binutils. # @@ -28,8 +28,8 @@ if { ![istarget *-*-linux*] } { } # Check if -pie is supported or not. -send_log "$CC -pie $srcdir/$subdir/pie.c -o tmpdir/pie" -catch "exec $CC -pie $srcdir/$subdir/pie.c -o tmpdir/pie" exec_output +send_log "$CC -fpie -pie $srcdir/$subdir/pie.c -o tmpdir/pie" +catch "exec $CC -fpie -pie $srcdir/$subdir/pie.c -o tmpdir/pie" exec_output send_log "$exec_output\n" if { ![string match "" $exec_output] } { return @@ -41,3 +41,10 @@ set array_tests { } run_ld_link_exec_tests [] $array_tests + +set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]] +foreach t $test_list { + # We need to strip the ".d", but can leave the dirname. + verbose [file rootname $t] + run_dump_test [file rootname $t] +}