This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Set XFAIL for non PE targets
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Cc: aaron98wiridge9 at aaronwl dot com
- Date: Tue, 26 Oct 2004 16:26:47 -0700
- Subject: PATCH: Set XFAIL for non PE targets
When I configure binutils with --enable-targets=i386-pe on Linux, I
get a failure in binutils. This patch fixes it.
Running
/export/linux/src/binutils/binutils/binutils/testsuite/binutils-all/dlltool.exp
...
PASS: dlltool (fastcall export)
dqdlbh.s: Assembler messages:
dqdlbh.s:5: Error: cannot represent relocation type BFD_RELOC_RVA
dqdlbh.s:10: Error: cannot represent relocation type BFD_RELOC_RVA
dqdlbh.s:11: Error: cannot represent relocation type BFD_RELOC_RVA
/export/build/linux/binutils-debug/build-i686-linux/binutils/dlltool:
/export/build/linux/binutils-debug/build-i686-linux/binutils/tmpdir/gas/as
exited with status 1
FAIL: dlltool -p (execution)
H.J.
----
2004-10-26 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/dlltool.exp: Set XFAIL if $target_xfail is yes.
--- binutils/testsuite/binutils-all/dlltool.exp.dll 2004-10-25 09:20:24.000000000 -0700
+++ binutils/testsuite/binutils-all/dlltool.exp 2004-10-26 16:21:45.410128025 -0700
@@ -45,6 +45,10 @@ if ![string match "" $err] then {
pass "dlltool (fastcall export)"
}
+if { "$target_xfail" == "yes" } {
+ setup_xfail *-*
+}
+
verbose "$DLLTOOL -p prefix -l tmpdir/libalias.a -d $srcdir/$subdir/alias.def $dlltool_gas_flag" 1
catch "exec $DLLTOOL -p prefix -l tmpdir/libalias.a -d $srcdir/$subdir/alias.def $dlltool_gas_flag" err