X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-elfvers%2Fvers.exp;fp=ld%2Ftestsuite%2Fld-elfvers%2Fvers.exp;h=828c32f06225208fe54b4bc84caee5133ebc1ed9;hp=f163c2183707fae5270f624fb0df4395c90ab360;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index f163c21..828c32f 100644 --- a/ld/testsuite/ld-elfvers/vers.exp +++ b/ld/testsuite/ld-elfvers/vers.exp @@ -1,6 +1,6 @@ # Expect script for ld-version tests -# Copyright 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2007 -# Free Software Foundation, Inc. +# Copyright 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, +# 2009 Free Software Foundation, Inc. # # This file is part of the GNU Binutils. # @@ -121,7 +121,7 @@ proc test_ar { test lib object expect } { catch "exec $nm --print-armap $tmpdir/$lib | grep \\\ in\\\ | egrep VERS\\\|bar\\\|foo | sort > $tmpdir/nm.out" exec_output if [string match "" $exec_output] then { - catch "exec $diff $tmpdir/nm.out $srcdir/$subdir/$expect" exec_output + catch "exec sort $srcdir/$subdir/$expect | $diff $tmpdir/nm.out -" exec_output set exec_output [prune_warnings $exec_output] if [string match "" $exec_output] then { pass $test @@ -804,6 +804,10 @@ build_exec "vers4" vers4.c vers4 "" "" "" "" vers4.sym build_exec "vers4a" vers4.c vers4a "-export-dynamic" "" vers4a.ver vers4a.dsym vers4a.sym +# Verify that --no-export-dynamic undoes the effect of --export-dynamic. +setup_xfail "mips*-*-*" +build_exec "vers4b" vers4.c vers4b "-export-dynamic -Wl,--no-export-dynamic" "" "" "" vers4.sym + # # Try multiple definitions foo@BAR and foo@@BAR and make sure the linker