Ignore:
Timestamp:
Jun 3, 2009, 7:19:12 PM (15 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
eafdda9
Parents:
77e17c8d
Message:

Updated to GCC 4.4.0

File:
1 moved

Legend:

Unmodified
Added
Removed
  • patches/gcc-4.4.0-pure64-1.patch

    r77e17c8d r56a4eb5  
    11Submitted By: Jim Gifford (jim at cross-lfs dot org)
    2 Date: 01-25-2009
    3 Initial Package Version: 4.3.3
     2Date: 04-21-2009
     3Initial Package Version: 4.4.0
    44Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
    55        the Pure LFS project.
    66Upstream Status: Not Applied
    7 Description: This patch modifies the location of the dynamic linker for gcc-4.3.3.
     7Description: This patch modifies the location of the dynamic linker for gcc-4.4.0.
    88
    9 diff -Naur gcc-4.3.3.orig/gcc/config/i386/linux64.h gcc-4.3.3/gcc/config/i386/linux64.h
    10 --- gcc-4.3.3.orig/gcc/config/i386/linux64.h    2007-08-02 03:49:31.000000000 -0700
    11 +++ gcc-4.3.3/gcc/config/i386/linux64.h 2009-01-25 00:49:04.956938399 -0800
    12 @@ -53,8 +53,8 @@
     9diff -Naur gcc-4.4.0.orig/gcc/config/i386/linux64.h gcc-4.4.0/gcc/config/i386/linux64.h
     10--- gcc-4.4.0.orig/gcc/config/i386/linux64.h    2009-04-09 16:23:07.000000000 -0700
     11+++ gcc-4.4.0/gcc/config/i386/linux64.h 2009-04-21 10:12:45.639047632 -0700
     12@@ -58,8 +58,8 @@
    1313    When the -shared link option is used a final link is not being
    1414    done.  */
     
    1919+#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-linux-x86-64.so.2"
    2020 
    21  #if TARGET_64BIT_DEFAULT
    22  #define SPEC_32 "m32"
    23 diff -Naur gcc-4.3.3.orig/gcc/config/i386/t-linux64 gcc-4.3.3/gcc/config/i386/t-linux64
    24 --- gcc-4.3.3.orig/gcc/config/i386/t-linux64    2007-09-27 12:56:06.000000000 -0700
    25 +++ gcc-4.3.3/gcc/config/i386/t-linux64 2009-01-25 00:49:11.211799413 -0800
    26 @@ -13,7 +13,7 @@
     21 #undef ASM_SPEC
     22 #define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} \
     23diff -Naur gcc-4.4.0.orig/gcc/config/i386/t-linux64 gcc-4.4.0/gcc/config/i386/t-linux64
     24--- gcc-4.4.0.orig/gcc/config/i386/t-linux64    2008-07-02 08:59:19.000000000 -0700
     25+++ gcc-4.4.0/gcc/config/i386/t-linux64 2009-04-21 10:12:52.642213438 -0700
     26@@ -7,7 +7,7 @@
    2727 
    2828 MULTILIB_OPTIONS = m64/m32
     
    3333 LIBGCC = stmp-multilib
    3434 INSTALL_LIBGCC = install-multilib
    35 diff -Naur gcc-4.3.3.orig/gcc/config/linux.h gcc-4.3.3/gcc/config/linux.h
    36 --- gcc-4.3.3.orig/gcc/config/linux.h   2007-08-02 03:49:31.000000000 -0700
    37 +++ gcc-4.3.3/gcc/config/linux.h        2009-01-25 00:49:09.037979047 -0800
    38 @@ -113,7 +113,7 @@
     35diff -Naur gcc-4.4.0.orig/gcc/config/linux.h gcc-4.4.0/gcc/config/linux.h
     36--- gcc-4.4.0.orig/gcc/config/linux.h   2009-04-09 16:23:07.000000000 -0700
     37+++ gcc-4.4.0/gcc/config/linux.h        2009-04-21 10:12:49.548334684 -0700
     38@@ -118,7 +118,7 @@
    3939    GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
    4040    supporting both 32-bit and 64-bit compilation.  */
     
    4545 #define LINUX_DYNAMIC_LINKER \
    4646   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
    47 diff -Naur gcc-4.3.3.orig/gcc/config/mips/linux64.h gcc-4.3.3/gcc/config/mips/linux64.h
    48 --- gcc-4.3.3.orig/gcc/config/mips/linux64.h    2007-08-02 03:49:31.000000000 -0700
    49 +++ gcc-4.3.3/gcc/config/mips/linux64.h 2009-01-25 00:49:09.124111188 -0800
    50 @@ -38,10 +38,10 @@
     47diff -Naur gcc-4.4.0.orig/gcc/config/mips/linux64.h gcc-4.4.0/gcc/config/mips/linux64.h
     48--- gcc-4.4.0.orig/gcc/config/mips/linux64.h    2009-02-20 07:20:38.000000000 -0800
     49+++ gcc-4.4.0/gcc/config/mips/linux64.h 2009-04-21 10:12:49.630265960 -0700
     50@@ -35,10 +35,10 @@
    5151 %{!shared: \
    5252   %{profile:-lc_p} %{!profile:-lc}}"
     
    6363   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
    6464 
    65 diff -Naur gcc-4.3.3.orig/gcc/config/mips/t-linux64 gcc-4.3.3/gcc/config/mips/t-linux64
    66 --- gcc-4.3.3.orig/gcc/config/mips/t-linux64    2006-06-06 05:51:24.000000000 -0700
    67 +++ gcc-4.3.3/gcc/config/mips/t-linux64 2009-01-25 00:49:11.265119430 -0800
     65diff -Naur gcc-4.4.0.orig/gcc/config/mips/t-linux64 gcc-4.4.0/gcc/config/mips/t-linux64
     66--- gcc-4.4.0.orig/gcc/config/mips/t-linux64    2006-06-06 05:51:24.000000000 -0700
     67+++ gcc-4.4.0/gcc/config/mips/t-linux64 2009-04-21 10:12:52.704637799 -0700
    6868@@ -1,6 +1,6 @@
    6969 MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64
     
    7474 EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
    7575 
    76 diff -Naur gcc-4.3.3.orig/gcc/config/rs6000/linux64.h gcc-4.3.3/gcc/config/rs6000/linux64.h
    77 --- gcc-4.3.3.orig/gcc/config/rs6000/linux64.h  2007-08-02 03:49:31.000000000 -0700
    78 +++ gcc-4.3.3/gcc/config/rs6000/linux64.h       2009-01-25 00:49:01.265542673 -0800
    79 @@ -339,9 +339,9 @@
     76diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/linux64.h gcc-4.4.0/gcc/config/rs6000/linux64.h
     77--- gcc-4.4.0.orig/gcc/config/rs6000/linux64.h  2009-04-09 16:23:07.000000000 -0700
     78+++ gcc-4.4.0/gcc/config/rs6000/linux64.h       2009-04-21 10:12:42.311081157 -0700
     79@@ -342,9 +342,9 @@
    8080 #undef LINK_OS_DEFAULT_SPEC
    8181 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
     
    9090 #if UCLIBC_DEFAULT
    9191 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    92 diff -Naur gcc-4.3.3.orig/gcc/config/rs6000/t-linux64 gcc-4.3.3/gcc/config/rs6000/t-linux64
    93 --- gcc-4.3.3.orig/gcc/config/rs6000/t-linux64  2007-09-27 12:56:06.000000000 -0700
    94 +++ gcc-4.3.3/gcc/config/rs6000/t-linux64       2009-01-25 00:49:11.137970107 -0800
     92diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/t-linux64 gcc-4.4.0/gcc/config/rs6000/t-linux64
     93--- gcc-4.4.0.orig/gcc/config/rs6000/t-linux64  2007-09-27 12:56:06.000000000 -0700
     94+++ gcc-4.4.0/gcc/config/rs6000/t-linux64       2009-04-21 10:12:52.552479957 -0700
    9595@@ -19,7 +19,7 @@
    9696 MULTILIB_EXTRA_OPTS     = fPIC mstrict-align
     
    102102 
    103103 softfp_wrap_start := '\#ifndef __powerpc64__'
    104 diff -Naur gcc-4.3.3.orig/gcc/config/s390/linux.h gcc-4.3.3/gcc/config/s390/linux.h
    105 --- gcc-4.3.3.orig/gcc/config/s390/linux.h      2007-08-02 03:49:31.000000000 -0700
    106 +++ gcc-4.3.3/gcc/config/s390/linux.h   2009-01-25 00:49:04.058697303 -0800
     104diff -Naur gcc-4.4.0.orig/gcc/config/s390/linux.h gcc-4.4.0/gcc/config/s390/linux.h
     105--- gcc-4.4.0.orig/gcc/config/s390/linux.h      2007-08-02 03:49:31.000000000 -0700
     106+++ gcc-4.4.0/gcc/config/s390/linux.h   2009-04-21 10:12:44.800229083 -0700
    107107@@ -72,7 +72,7 @@
    108108 #define MULTILIB_DEFAULTS { "m31" }
     
    114114 
    115115 #undef  LINK_SPEC
    116 diff -Naur gcc-4.3.3.orig/gcc/config/s390/t-linux64 gcc-4.3.3/gcc/config/s390/t-linux64
    117 --- gcc-4.3.3.orig/gcc/config/s390/t-linux64    2006-02-06 09:41:54.000000000 -0800
    118 +++ gcc-4.3.3/gcc/config/s390/t-linux64 2009-01-25 00:49:11.178985891 -0800
     116diff -Naur gcc-4.4.0.orig/gcc/config/s390/t-linux64 gcc-4.4.0/gcc/config/s390/t-linux64
     117--- gcc-4.4.0.orig/gcc/config/s390/t-linux64    2006-02-06 09:41:54.000000000 -0800
     118+++ gcc-4.4.0/gcc/config/s390/t-linux64 2009-04-21 10:12:52.607098757 -0700
    119119@@ -1,6 +1,6 @@
    120120 MULTILIB_OPTIONS = m64/m31
     
    125125 LIBGCC = stmp-multilib
    126126 INSTALL_LIBGCC = install-multilib
    127 diff -Naur gcc-4.3.3.orig/gcc/config/sparc/linux64.h gcc-4.3.3/gcc/config/sparc/linux64.h
    128 --- gcc-4.3.3.orig/gcc/config/sparc/linux64.h   2007-10-18 21:29:38.000000000 -0700
    129 +++ gcc-4.3.3/gcc/config/sparc/linux64.h        2009-01-25 00:49:10.604768822 -0800
    130 @@ -144,9 +144,9 @@
     127diff -Naur gcc-4.4.0.orig/gcc/config/sparc/linux64.h gcc-4.4.0/gcc/config/sparc/linux64.h
     128--- gcc-4.4.0.orig/gcc/config/sparc/linux64.h   2009-02-20 07:20:38.000000000 -0800
     129+++ gcc-4.4.0/gcc/config/sparc/linux64.h        2009-04-21 10:12:52.029679006 -0700
     130@@ -109,8 +109,8 @@
    131131 
    132132 /* If ELF is the default format, we should not use /lib/elf.  */
     
    134134-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
    135135-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
    136 -#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    137136+#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld-linux.so.2"
    138137+#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-linux.so.2"
    139 +#define UCLIBC_DYNAMIC_LINKER32 "/lib32/ld-uClibc.so.0"
    140  #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
    141  #if UCLIBC_DEFAULT
    142  #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    143 @@ -167,7 +167,7 @@
     138 
     139 #ifdef SPARC_BI_ARCH
     140 
     141@@ -121,7 +121,7 @@
    144142   { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },       \
    145143   { "link_arch",        LINK_ARCH_SPEC },
    146144 
    147 -#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
    148 +#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib32 %{shared:-shared} \
     145-#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
     146+#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib32 %{shared:-shared} \
    149147   %{!shared: \
    150148     %{!ibcs: \
    151149       %{!static: \
    152 @@ -176,7 +176,7 @@
     150@@ -130,7 +130,7 @@
    153151         %{static:-static}}} \
    154152 "
    155153 
    156 -#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
    157 +#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib %{shared:-shared} \
     154-#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     155+#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/usr/lib %{shared:-shared} \
    158156   %{!shared: \
    159157     %{!ibcs: \
    160158       %{!static: \
    161 @@ -257,7 +257,7 @@
     159@@ -211,7 +211,7 @@
    162160 #else /* !SPARC_BI_ARCH */
    163161 
    164162 #undef LINK_SPEC
    165 -#define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
    166 +#define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib %{shared:-shared} \
     163-#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     164+#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib %{shared:-shared} \
    167165   %{!shared: \
    168166     %{!ibcs: \
    169167       %{!static: \
    170 diff -Naur gcc-4.3.3.orig/gcc/config/sparc/linux.h gcc-4.3.3/gcc/config/sparc/linux.h
    171 --- gcc-4.3.3.orig/gcc/config/sparc/linux.h     2007-08-02 03:49:31.000000000 -0700
    172 +++ gcc-4.3.3/gcc/config/sparc/linux.h  2009-01-25 00:49:10.863168878 -0800
    173 @@ -132,7 +132,7 @@
    174  
     168diff -Naur gcc-4.4.0.orig/gcc/config/sparc/linux.h gcc-4.4.0/gcc/config/sparc/linux.h
     169--- gcc-4.4.0.orig/gcc/config/sparc/linux.h     2009-02-20 07:20:38.000000000 -0800
     170+++ gcc-4.4.0/gcc/config/sparc/linux.h  2009-04-21 10:12:52.271571169 -0700
     171@@ -86,7 +86,7 @@
     172 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
    175173 
    176174 #undef  LINK_SPEC
     
    180178   %{!shared: \
    181179     %{!ibcs: \
    182 diff -Naur gcc-4.3.3.orig/gcc/config/sparc/t-linux64 gcc-4.3.3/gcc/config/sparc/t-linux64
    183 --- gcc-4.3.3.orig/gcc/config/sparc/t-linux64   2006-02-07 23:19:43.000000000 -0800
    184 +++ gcc-4.3.3/gcc/config/sparc/t-linux64        2009-01-25 00:49:11.314338874 -0800
     180diff -Naur gcc-4.4.0.orig/gcc/config/sparc/t-linux64 gcc-4.4.0/gcc/config/sparc/t-linux64
     181--- gcc-4.4.0.orig/gcc/config/sparc/t-linux64   2006-02-07 23:19:43.000000000 -0800
     182+++ gcc-4.4.0/gcc/config/sparc/t-linux64        2009-04-21 10:12:52.755357174 -0700
    185183@@ -1,6 +1,6 @@
    186184 MULTILIB_OPTIONS = m64/m32
Note: See TracChangeset for help on using the changeset viewer.