This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] MinGW bootstrap fix.
- From: Pedro Alves <pedro_alves at portugalmail dot pt>
- To: Binutils <binutils at sourceware dot org>
- Date: Thu, 21 Dec 2006 13:28:48 +0000
- Subject: [PATCH] MinGW bootstrap fix.
Hi all,
In the process of running the ld testsuite on MinGW+cygwin I noted that
ld/configure.host
doesn't have a mingw entry. Attached is a patch that fixes it, but
since I know close to
nothing on MinGW, it may be wrong.
Please review and commit.
This is what it fixes:
-FAIL: bootstrap
-FAIL: bootstrap with strip
-FAIL: bootstrap with --static
-FAIL: bootstrap with --traditional-format
-FAIL: bootstrap with --no-keep-memory
-FAIL: bootstrap with --relax
+PASS: bootstrap
+PASS: bootstrap with strip
+PASS: bootstrap with --static
+PASS: bootstrap with --traditional-format
+PASS: bootstrap with --no-keep-memory
+PASS: bootstrap with --relax
Running /mingw/h8s/binutils/ld/testsuite/ld-cdtest/cdtest.exp ...
FAIL: cdtest
FAIL: cdtest with -Ur
@@ -149,8 +149,8 @@ Running /mingw/h8s/binutils/ld/testsuite
=== ld Summary ===
-# of expected passes 40
-# of unexpected failures 10
+# of expected passes 46
+# of unexpected failures 4
# of unexpected successes 1
# of expected failures 3
# of unsupported tests 2
Cheers,
Pedro Alves
----
ld/
2006-12-21 Pedro Alves <pedro_alves@portugalmail.pt>
* configure.host: Add i[3-7]86-*-mingw* case.
Index: ld/configure.host
===================================================================
RCS file: /cvs/src/src/ld/configure.host,v
retrieving revision 1.43
diff -u -p -r1.43 configure.host
--- ld/configure.host 19 Jul 2005 12:43:19 -0000 1.43
+++ ld/configure.host 21 Dec 2006 11:36:14 -0000
@@ -147,6 +147,12 @@ i[3-7]86-*-cygwin*)
HOSTING_LIBS="$HOSTING_LIBS"' -lcygwin -L/usr/lib/w32api -luser32 -lkernel32 -ladvapi32 -lshell32 `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi`'
;;
+i[3-7]86-*-mingw*)
+ #We only support msvcrt.dll, crtid == 2.
+ HOSTING_CRT0='/mingw/lib/crt2.o'
+ HOSTING_LIBS='-L/mingw/lib -lmingw32 -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lmoldname -lmingwex -lmsvcrt `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi`'
+ ;;
+
ia64-*-linux-*)
HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]*\*,ld-linux-ia64,g"`
;;