patches/gcc/2.95.3/150-cygwin-020611.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed May 20 20:13:13 2009 +0000 (2009-05-20)
changeset 1345 27fec561af53
parent 402 197e1b49586e
permissions -rw-r--r--
Merge the uClinux/noMMU stuff back to /trunk:
- merge Linux and uClinux back to a single kernel
- add ARCH_USE_MMU and acquainted config options that
architectures can auto-select
- make binutils and elf2flt two "Binary utilities" that
go in a single common sub-{menu,directory} structure

-------- diffstat follows --------
/trunk/scripts/build/kernel/uclinux.sh | 2 0 2 0 -
/trunk/scripts/build/kernel/linux.sh | 206 204 2 0 +++++++++++++++++++++++++++++
/trunk/scripts/build/kernel/linux-common.sh | 198 0 198 0 ----------------------------
/trunk/scripts/build/binutils.sh | 232 0 232 0 --------------------------------
/trunk/scripts/build/elf2flt.sh | 150 0 150 0 ---------------------
/trunk/scripts/crosstool-NG.sh.in | 6 4 2 0 +
/trunk/config/kernel/linux.in | 249 249 0 0 +++++++++++++++++++++++++++++++++++
/trunk/config/kernel/linux.in-common | 252 0 252 0 -----------------------------------
/trunk/config/kernel/uclinux.in | 21 0 21 0 ---
/trunk/config/target.in | 23 22 1 0 +++
/trunk/config/elf2flt.in | 49 0 49 0 -------
/trunk/config/libc/glibc.in | 2 1 1 0
/trunk/config/libc/eglibc.in | 2 1 1 0
/trunk/config/config.in | 1 0 1 0 -
/trunk/config/arch/sh.in | 1 1 0 0 +
/trunk/config/arch/arm.in | 2 1 1 0
/trunk/config/arch/powerpc.in | 1 1 0 0 +
/trunk/config/arch/ia64.in | 1 1 0 0 +
/trunk/config/arch/alpha.in | 1 1 0 0 +
/trunk/config/arch/x86.in | 1 1 0 0 +
/trunk/config/arch/mips.in | 1 1 0 0 +
/trunk/config/arch/powerpc64.in | 1 1 0 0 +
22 files changed, 489 insertions(+), 913 deletions(-)
     1 [ Building gcc-2.95.3 on cygwin yields a compiler that sticks a .exe
     2   on the end of every executable, even if they're linux executable.
     3   This is highly annoying, and causes glibc build failures that look like this:
     4     mv: `.../bin/makedb.new' and `.../bin/makedb' are the same file
     5     make[2]: *** [.../bin/makedb] Error 1
     6     make[2]: Leaving directory `.../gcc-2.95.3-glibc-2.1.3/glibc-2.1.3/db2'
     7 
     8   The mainline solves this with http://gcc.gnu.org/ml/gcc-cvs/2001-04/msg00440.html,
     9   but that doesn't apply cleanly to gcc-2.95.3.
    10 
    11   So, I'm using
    12   http://www.uclinux.org/pub/uClinux/uclinux-elf-tools/tools-20030314/gcc-2.95.3-cygwin-020611.patch
    13   This is the only patch in crosstool that *isn't* suitable for the mainline.
    14   I can live with this patch simply because crosstool does not build
    15   compilers that target cygwin or VAX/VMS. 
    16   If that ever changes, I might need to try applying the real patch.
    17 ]
    18 
    19 
    20 
    21 #
    22 # This patch can be found at http://www.uclinux.org/pub/uClinux/m68k-elf-tools/
    23 #
    24 --- gcc-2.95.3/gcc/config/i386/xm-cygwin.h	1999-04-22 16:40:56.000000000 +0200
    25 +++ gcc-2.95.3-cygwin/gcc/config/i386/xm-cygwin.h	2002-06-11 08:23:18.000000000 +0200
    26 @@ -19,7 +19,6 @@
    27  the Free Software Foundation, 59 Temple Place - Suite 330,
    28  Boston, MA 02111-1307, USA. */
    29  
    30 -#define EXECUTABLE_SUFFIX ".exe"
    31  #define NO_SYS_SIGLIST 1
    32  
    33  /* We support both "/" and "\" since everybody tests both but we