view diffs/old/binutils-2.19-winelf.diff @ 5:6b8e05507b18

Windowsy updates (new binutils, gcc, and a fix to elfload).
author Gregor Richards <Richards@codu.org>
date Sun, 13 Dec 2009 19:28:20 -0500
parents diffs/binutils-2.19-winelf.diff@b10489e764e3
children
line wrap: on
line source

diff -r 32aece6b841a -r 2766f4462a7e bfd/config.bfd
--- a/bfd/config.bfd	Thu Jul 23 13:16:34 2009 -0400
+++ b/bfd/config.bfd	Thu Jul 23 13:17:20 2009 -0400
@@ -479,7 +479,8 @@
     ;;
   i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
   i[3-7]86-*-elf | i[3-7]86-*-sco3.2v5* | \
-  i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
+  i[3-7]86-*-dgux* | i[3-7]86-*-sysv5* | \
+  i[3-7]86-*-win32elf*)
     targ_defvec=bfd_elf32_i386_vec
     targ_selvecs=i386coff_vec
     ;;
diff -r 32aece6b841a -r 2766f4462a7e config.sub
--- a/config.sub	Thu Jul 23 13:16:34 2009 -0400
+++ b/config.sub	Thu Jul 23 13:17:20 2009 -0400
@@ -1257,7 +1257,7 @@
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
 	      | -chorusos* | -chorusrdb* \
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* | -win32elf* \
 	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
diff -r 32aece6b841a -r 2766f4462a7e gas/configure.tgt
--- a/gas/configure.tgt	Thu Jul 23 13:16:34 2009 -0400
+++ b/gas/configure.tgt	Thu Jul 23 13:17:20 2009 -0400
@@ -225,6 +225,7 @@
       x86_64*)				fmt=coff em=pep ;;
       i*)				fmt=coff em=pe ;;
     esac ;;
+  i386-*-win32elf*)			fmt=elf ;;
   i386-*-nto-qnx*)			fmt=elf ;;
   i386-*-*nt*)				fmt=coff em=pe ;;
   i386-*-chaos)				fmt=elf ;;
diff -r 32aece6b841a -r 2766f4462a7e ld/configure.tgt
--- a/ld/configure.tgt	Thu Jul 23 13:16:34 2009 -0400
+++ b/ld/configure.tgt	Thu Jul 23 13:17:20 2009 -0400
@@ -272,6 +272,7 @@
 			targ_extra_ofiles="deffilep.o pep-dll.o" ;;
 i[3-7]86-*-interix*)	targ_emul=i386pe_posix;
  			targ_extra_ofiles="deffilep.o pe-dll.o" ;;
+i[3-7]86-*-win32elf*)   targ_emul=elf_i386 ;;
 i[3-7]86-*-beospe*)	targ_emul=i386beos ;;
 i[3-7]86-*-beos*)	targ_emul=elf_i386_be ;;
 i[3-7]86-*-vxworks*)	targ_emul=elf_i386_vxworks ;;
diff -r 32aece6b841a -r 2766f4462a7e libiberty/configure
--- a/libiberty/configure	Thu Jul 23 13:16:34 2009 -0400
+++ b/libiberty/configure	Thu Jul 23 13:17:20 2009 -0400
@@ -6044,7 +6044,7 @@
 
 
 case "${host}" in
-  *-*-cygwin* | *-*-mingw*)
+  *-*-cygwin* | *-*-mingw* | *-*-win32elf*)
     cat >>confdefs.h <<\_ACEOF
 #define HAVE_SYS_ERRLIST 1
 _ACEOF
@@ -6228,7 +6228,7 @@
     fi
     ;;
 
-  *-*-mingw32*)
+  *-*-mingw32* | *-*-win32elf*)
     # Under mingw32, sys_nerr and sys_errlist exist, but they are
     # macros, so the test below won't find them.
     libiberty_cv_var_sys_nerr=yes
@@ -8549,7 +8549,7 @@
 
 # Figure out which version of pexecute to use.
 case "${host}" in
-     *-*-mingw* | *-*-winnt*)	pexecute=./pex-win32.o  ;;
+     *-*-mingw* | *-*-winnt* | *-*-win32elf*)	pexecute=./pex-win32.o  ;;
      *-*-msdosdjgpp*)		pexecute=./pex-djgpp.o  ;;
      *-*-msdos*)		pexecute=./pex-msdos.o  ;;
      *)				pexecute=./pex-unix.o   ;;
diff -r 32aece6b841a -r 2766f4462a7e libiberty/configure.ac
--- a/libiberty/configure.ac	Thu Jul 23 13:16:34 2009 -0400
+++ b/libiberty/configure.ac	Thu Jul 23 13:17:20 2009 -0400
@@ -501,7 +501,7 @@
 AC_SUBST(target_header_dir)
 
 case "${host}" in
-  *-*-cygwin* | *-*-mingw*)
+  *-*-cygwin* | *-*-mingw* | *-*-win32elf*)
     AC_DEFINE(HAVE_SYS_ERRLIST)
     AC_DEFINE(HAVE_SYS_NERR)
     ;;
@@ -593,7 +593,7 @@
     fi
     ;;
 
-  *-*-mingw32*)
+  *-*-mingw32* | *-*-win32elf*)
     # Under mingw32, sys_nerr and sys_errlist exist, but they are
     # macros, so the test below won't find them.
     libiberty_cv_var_sys_nerr=yes
@@ -678,7 +678,7 @@
 
 # Figure out which version of pexecute to use.
 case "${host}" in
-     *-*-mingw* | *-*-winnt*)	pexecute=./pex-win32.o  ;;
+     *-*-mingw* | *-*-winnt* | *-*-win32elf)	pexecute=./pex-win32.o  ;;
      *-*-msdosdjgpp*)		pexecute=./pex-djgpp.o  ;;
      *-*-msdos*)		pexecute=./pex-msdos.o  ;;
      *)				pexecute=./pex-unix.o   ;;