Changeset 56a4eb5


Ignore:
Timestamp:
Jun 3, 2009, 12:19:12 PM (12 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

Location:
patches
Files:
1 added
3 deleted
4 moved

Legend:

Unmodified
Added
Removed
  • patches/gcc-4.4.0-posix-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: Jim Gifford
    55        Rediffed against 4.1.0 by Chris Staub
     
    88        Rediffed against 4.3.0 by Joe Ciccone
    99        Rediffed against 4.3.3 by Jim Gifford
     10        Rediffed against 4.4.0 by Jim Gifford
    1011Upstream Status: On Hold
    1112Description: Makes GCC Posix Compliant
    1213
    13 diff -Naur gcc-4.3.3.orig/contrib/patch_tester.sh gcc-4.3.3/contrib/patch_tester.sh
    14 --- gcc-4.3.3.orig/contrib/patch_tester.sh      2007-12-26 13:01:38.000000000 -0800
    15 +++ gcc-4.3.3/contrib/patch_tester.sh   2009-01-25 00:53:32.447636261 -0800
    16 @@ -287,7 +287,7 @@
    17  
    18      if ! make $dashj `grep "^make:" $PATCH | sed -e "s/^make://g"` bootstrap &> $1/bootstrap ; then
    19         report "bootstrap failed with last lines:"
     14diff -Naur gcc-4.4.0.orig/contrib/patch_tester.sh gcc-4.4.0/contrib/patch_tester.sh
     15--- gcc-4.4.0.orig/contrib/patch_tester.sh      2008-05-08 08:14:47.000000000 -0700
     16+++ gcc-4.4.0/contrib/patch_tester.sh   2009-04-21 09:56:06.009963403 -0700
     17@@ -324,7 +324,7 @@
     18     MAKE_ARGS="$default_make $MAKE_ARGS"
     19     if ! eval make $dashj $MAKE_ARGS &> $1/bootstrap ; then
     20        report "bootstrap with `basename $1` version failed with last lines:"
    2021-       tail -30 $1/bootstrap > $1/last_bootstrap
    2122+       tail -n 30 $1/bootstrap > $1/last_bootstrap
     
    2324        report "grep --context=20 Error bootstrap:"
    2425        grep --context=20 Error $1/bootstrap > $1/bootstrap_error
    25 @@ -420,7 +420,7 @@
     26@@ -464,7 +464,7 @@
    2627 # After selfexec, $TESTING is already set up. 
    2728 if [ -d $TESTING ]; then
     
    3233     if [ -f $PATCH ]; then
    3334        bootntest_patched && bootntest_pristine && compare_passes
    34 @@ -429,7 +429,7 @@
    35  fi
    36  
     35@@ -474,7 +474,7 @@
     36 
     37 firstpatch=true
    3738 while true; do
    3839-    PATCH=`ls -rt -1 $PATCHES | head -1`
    3940+    PATCH=`ls -rt -1 $PATCHES | head -n 1`
    4041     if [ x$PATCH = x ]; then
    41         sleep ${standby}m
    42      else
    43 diff -Naur gcc-4.3.3.orig/contrib/test_summary gcc-4.3.3/contrib/test_summary
    44 --- gcc-4.3.3.orig/contrib/test_summary 2007-02-09 16:30:46.000000000 -0800
    45 +++ gcc-4.3.3/contrib/test_summary      2009-01-25 00:53:32.447636261 -0800
     42        if [ $stop = true ]; then
     43            if [ $firstpatch = true ]; then
     44diff -Naur gcc-4.4.0.orig/contrib/test_summary gcc-4.4.0/contrib/test_summary
     45--- gcc-4.4.0.orig/contrib/test_summary 2007-02-09 16:30:46.000000000 -0800
     46+++ gcc-4.4.0/contrib/test_summary      2009-04-21 09:55:36.820093030 -0700
    4647@@ -107,7 +107,7 @@
    4748     srcdir = configflags;
     
    5354 
    5455     sub(/^[^ ]*\/configure */, " ", configflags);
    55 diff -Naur gcc-4.3.3.orig/gcc/configure gcc-4.3.3/gcc/configure
    56 --- gcc-4.3.3.orig/gcc/configure        2008-08-01 02:51:03.000000000 -0700
    57 +++ gcc-4.3.3/gcc/configure     2009-01-25 00:53:32.455839362 -0800
    58 @@ -20245,7 +20245,7 @@
     56diff -Naur gcc-4.4.0.orig/gcc/configure gcc-4.4.0/gcc/configure
     57--- gcc-4.4.0.orig/gcc/configure        2009-03-24 10:46:03.000000000 -0700
     58+++ gcc-4.4.0/gcc/configure     2009-04-21 09:55:36.828093310 -0700
     59@@ -21750,7 +21750,7 @@
    5960   # Therefore, use diff -b for the comparisons.
    6061   if test x$gcc_cv_objdump != x \
     
    6566     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
    6667   then
    67 diff -Naur gcc-4.3.3.orig/gcc/configure.ac gcc-4.3.3/gcc/configure.ac
    68 --- gcc-4.3.3.orig/gcc/configure.ac     2008-08-01 02:51:03.000000000 -0700
    69 +++ gcc-4.3.3/gcc/configure.ac  2009-01-25 00:53:32.455839362 -0800
    70 @@ -2241,7 +2241,7 @@
     68diff -Naur gcc-4.4.0.orig/gcc/configure.ac gcc-4.4.0/gcc/configure.ac
     69--- gcc-4.4.0.orig/gcc/configure.ac     2009-03-24 10:46:03.000000000 -0700
     70+++ gcc-4.4.0/gcc/configure.ac  2009-04-21 09:55:36.840094427 -0700
     71@@ -2351,7 +2351,7 @@
    7172   # Therefore, use diff -b for the comparisons.
    7273   if test x$gcc_cv_objdump != x \
     
    7778     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
    7879   then
    79 diff -Naur gcc-4.3.3.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.3.3/gcc/testsuite/ada/acats/run_all.sh
    80 --- gcc-4.3.3.orig/gcc/testsuite/ada/acats/run_all.sh   2006-09-14 03:12:03.000000000 -0700
    81 +++ gcc-4.3.3/gcc/testsuite/ada/acats/run_all.sh        2009-01-25 00:53:32.459940773 -0800
     80diff -Naur gcc-4.4.0.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.4.0/gcc/testsuite/ada/acats/run_all.sh
     81--- gcc-4.4.0.orig/gcc/testsuite/ada/acats/run_all.sh   2006-09-14 03:12:03.000000000 -0700
     82+++ gcc-4.4.0/gcc/testsuite/ada/acats/run_all.sh        2009-04-21 09:55:36.848094706 -0700
    8283@@ -68,7 +68,7 @@
    8384   ls ${i}?.adb > ${i}.lst 2> /dev/null
     
    8990 
    9091 EXTERNAL_OBJECTS=""
    91 diff -Naur gcc-4.3.3.orig/libgomp/acinclude.m4 gcc-4.3.3/libgomp/acinclude.m4
    92 --- gcc-4.3.3.orig/libgomp/acinclude.m4 2007-03-18 04:17:44.000000000 -0700
    93 +++ gcc-4.3.3/libgomp/acinclude.m4      2009-01-25 00:53:32.459940773 -0800
    94 @@ -147,7 +147,7 @@
    95    # Start by getting the version number.  I think the libtool test already
    96    # does some of this, but throws away the result.
     92diff -Naur gcc-4.4.0.orig/libgomp/acinclude.m4 gcc-4.4.0/libgomp/acinclude.m4
     93--- gcc-4.4.0.orig/libgomp/acinclude.m4 2009-01-31 09:09:24.000000000 -0800
     94+++ gcc-4.4.0/libgomp/acinclude.m4      2009-04-21 09:56:53.993037854 -0700
     95@@ -152,7 +152,7 @@
     96     libgomp_ld_is_gold=yes
     97   fi
    9798   changequote(,)
    9899-  ldver=`$LD --version 2>/dev/null | head -1 | \
    99100+  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    100           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
     101          sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    101102   changequote([,])
    102103   libgomp_gnu_ld_version=`echo $ldver | \
    103 diff -Naur gcc-4.3.3.orig/libgomp/configure gcc-4.3.3/libgomp/configure
    104 --- gcc-4.3.3.orig/libgomp/configure    2008-01-24 08:23:13.000000000 -0800
    105 +++ gcc-4.3.3/libgomp/configure 2009-01-25 00:53:32.464042184 -0800
    106 @@ -17600,7 +17600,7 @@
    107    # Start by getting the version number.  I think the libtool test already
    108    # does some of this, but throws away the result.
     104diff -Naur gcc-4.4.0.orig/libgomp/configure gcc-4.4.0/libgomp/configure
     105--- gcc-4.4.0.orig/libgomp/configure    2009-04-21 02:08:08.000000000 -0700
     106+++ gcc-4.4.0/libgomp/configure 2009-04-21 09:56:33.615732086 -0700
     107@@ -18486,7 +18486,7 @@
     108     libgomp_ld_is_gold=yes
     109   fi
    109110 
    110111-  ldver=`$LD --version 2>/dev/null | head -1 | \
    111112+  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    112           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
     113          sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    113114 
    114115   libgomp_gnu_ld_version=`echo $ldver | \
    115 diff -Naur gcc-4.3.3.orig/libjava/classpath/configure gcc-4.3.3/libjava/classpath/configure
    116 --- gcc-4.3.3.orig/libjava/classpath/configure  2008-02-29 15:47:54.000000000 -0800
    117 +++ gcc-4.3.3/libjava/classpath/configure       2009-01-25 00:53:32.480448386 -0800
    118 @@ -29126,7 +29126,7 @@
     116diff -Naur gcc-4.4.0.orig/libjava/classpath/configure gcc-4.4.0/libjava/classpath/configure
     117--- gcc-4.4.0.orig/libjava/classpath/configure  2009-03-16 05:08:23.000000000 -0700
     118+++ gcc-4.4.0/libjava/classpath/configure       2009-04-21 09:55:36.872096103 -0700
     119@@ -29072,7 +29072,7 @@
    119120 fi # shortcircut to system "stdint.h"
    120121 # ------------------ PREPARE VARIABLES ------------------------------
     
    125126 ac_cv_stdint_message="using $CC"
    126127 fi
    127 diff -Naur gcc-4.3.3.orig/libjava/classpath/ltcf-c.sh gcc-4.3.3/libjava/classpath/ltcf-c.sh
    128 --- gcc-4.3.3.orig/libjava/classpath/ltcf-c.sh  2006-01-17 10:09:40.000000000 -0800
    129 +++ gcc-4.3.3/libjava/classpath/ltcf-c.sh       2009-01-25 00:53:32.484550356 -0800
     128diff -Naur gcc-4.4.0.orig/libjava/classpath/ltcf-c.sh gcc-4.4.0/libjava/classpath/ltcf-c.sh
     129--- gcc-4.4.0.orig/libjava/classpath/ltcf-c.sh  2006-01-17 10:09:40.000000000 -0800
     130+++ gcc-4.4.0/libjava/classpath/ltcf-c.sh       2009-04-21 09:55:36.872096103 -0700
    130131@@ -153,7 +153,7 @@
    131132     # If the export-symbols file already is a .def file (1st line
     
    137138       else
    138139         echo EXPORTS > $output_objdir/$soname-def;
    139 diff -Naur gcc-4.3.3.orig/libjava/classpath/ltcf-gcj.sh gcc-4.3.3/libjava/classpath/ltcf-gcj.sh
    140 --- gcc-4.3.3.orig/libjava/classpath/ltcf-gcj.sh        2005-09-23 14:31:04.000000000 -0700
    141 +++ gcc-4.3.3/libjava/classpath/ltcf-gcj.sh     2009-01-25 00:53:32.484550356 -0800
     140diff -Naur gcc-4.4.0.orig/libjava/classpath/ltcf-gcj.sh gcc-4.4.0/libjava/classpath/ltcf-gcj.sh
     141--- gcc-4.4.0.orig/libjava/classpath/ltcf-gcj.sh        2005-09-23 14:31:04.000000000 -0700
     142+++ gcc-4.4.0/libjava/classpath/ltcf-gcj.sh     2009-04-21 09:55:36.872096103 -0700
    142143@@ -156,7 +156,7 @@
    143144     # If the export-symbols file already is a .def file (1st line
     
    149150       else
    150151         echo EXPORTS > $output_objdir/$soname-def;
    151 diff -Naur gcc-4.3.3.orig/libjava/classpath/m4/ax_create_stdint_h.m4 gcc-4.3.3/libjava/classpath/m4/ax_create_stdint_h.m4
    152 --- gcc-4.3.3.orig/libjava/classpath/m4/ax_create_stdint_h.m4   2007-05-19 13:44:43.000000000 -0700
    153 +++ gcc-4.3.3/libjava/classpath/m4/ax_create_stdint_h.m4        2009-01-25 00:53:32.484550356 -0800
     152diff -Naur gcc-4.4.0.orig/libjava/classpath/m4/ax_create_stdint_h.m4 gcc-4.4.0/libjava/classpath/m4/ax_create_stdint_h.m4
     153--- gcc-4.4.0.orig/libjava/classpath/m4/ax_create_stdint_h.m4   2007-05-19 13:44:43.000000000 -0700
     154+++ gcc-4.4.0/libjava/classpath/m4/ax_create_stdint_h.m4        2009-04-21 09:55:36.872096103 -0700
    154155@@ -217,7 +217,7 @@
    155156 fi # shortcircut to system "stdint.h"
     
    161162 ac_cv_stdint_message="using $CC"
    162163 fi
    163 diff -Naur gcc-4.3.3.orig/libjava/configure gcc-4.3.3/libjava/configure
    164 --- gcc-4.3.3.orig/libjava/configure    2009-01-24 02:32:29.000000000 -0800
    165 +++ gcc-4.3.3/libjava/configure 2009-01-25 00:53:32.492753177 -0800
    166 @@ -18673,8 +18673,8 @@
     164diff -Naur gcc-4.4.0.orig/libjava/configure gcc-4.4.0/libjava/configure
     165--- gcc-4.4.0.orig/libjava/configure    2009-04-21 02:08:08.000000000 -0700
     166+++ gcc-4.4.0/libjava/configure 2009-04-21 09:55:36.884096662 -0700
     167@@ -18919,8 +18919,8 @@
    167168 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
    168169 LD_PROG=`$CC --print-prog-name=ld`
     
    175176   LD_OK="ok"
    176177 else
    177 diff -Naur gcc-4.3.3.orig/libjava/mingwld.m4 gcc-4.3.3/libjava/mingwld.m4
    178 --- gcc-4.3.3.orig/libjava/mingwld.m4   2005-08-22 15:36:35.000000000 -0700
    179 +++ gcc-4.3.3/libjava/mingwld.m4        2009-01-25 00:53:32.492753177 -0800
     178diff -Naur gcc-4.4.0.orig/libjava/mingwld.m4 gcc-4.4.0/libjava/mingwld.m4
     179--- gcc-4.4.0.orig/libjava/mingwld.m4   2005-08-22 15:36:35.000000000 -0700
     180+++ gcc-4.4.0/libjava/mingwld.m4        2009-04-21 09:55:36.892097500 -0700
    180181@@ -3,8 +3,8 @@
    181182 AC_MSG_CHECKING(whether 'ld' is at least 2.13)
     
    189190   LD_OK="ok"
    190191 else
    191 diff -Naur gcc-4.3.3.orig/libstdc++-v3/acinclude.m4 gcc-4.3.3/libstdc++-v3/acinclude.m4
    192 --- gcc-4.3.3.orig/libstdc++-v3/acinclude.m4    2008-04-25 09:52:57.000000000 -0700
    193 +++ gcc-4.3.3/libstdc++-v3/acinclude.m4 2009-01-25 00:53:32.500956558 -0800
    194 @@ -234,7 +234,7 @@
    195    if test x"$with_gnu_ld" = x"yes"; then
    196      AC_MSG_CHECKING([for ld version])
    197      changequote(,)
    198 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    199 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    200             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
     192diff -Naur gcc-4.4.0.orig/libstdc++-v3/acinclude.m4 gcc-4.4.0/libstdc++-v3/acinclude.m4
     193--- gcc-4.4.0.orig/libstdc++-v3/acinclude.m4    2009-02-23 12:42:53.000000000 -0800
     194+++ gcc-4.4.0/libstdc++-v3/acinclude.m4 2009-04-21 09:57:46.768419611 -0700
     195@@ -238,7 +238,7 @@
     196     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     197       glibcxx_ld_is_gold=yes
     198     fi
     199-    ldver=`$LD --version 2>/dev/null | head -1 | \
     200+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     201            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
    201202     changequote([,])
    202203     glibcxx_gnu_ld_version=`echo $ldver | \
    203 diff -Naur gcc-4.3.3.orig/libstdc++-v3/configure gcc-4.3.3/libstdc++-v3/configure
    204 --- gcc-4.3.3.orig/libstdc++-v3/configure       2008-07-07 12:49:54.000000000 -0700
    205 +++ gcc-4.3.3/libstdc++-v3/configure    2009-01-25 00:53:32.582987288 -0800
    206 @@ -17490,7 +17490,7 @@
    207      echo "$as_me:$LINENO: checking for ld version" >&5
    208  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    209  
    210 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    211 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    212             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    213  
    214      glibcxx_gnu_ld_version=`echo $ldver | \
    215 @@ -42215,7 +42215,7 @@
    216      echo "$as_me:$LINENO: checking for ld version" >&5
    217  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    218  
    219 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    220 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    221             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    222  
    223      glibcxx_gnu_ld_version=`echo $ldver | \
    224 @@ -84606,7 +84606,7 @@
    225      echo "$as_me:$LINENO: checking for ld version" >&5
    226  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    227  
    228 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    229 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    230             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    231  
    232      glibcxx_gnu_ld_version=`echo $ldver | \
    233 @@ -85622,7 +85622,7 @@
    234      echo "$as_me:$LINENO: checking for ld version" >&5
    235  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    236  
    237 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    238 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    239             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    240  
    241      glibcxx_gnu_ld_version=`echo $ldver | \
    242 @@ -86610,7 +86610,7 @@
    243      echo "$as_me:$LINENO: checking for ld version" >&5
    244  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    245  
    246 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    247 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    248             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    249  
    250      glibcxx_gnu_ld_version=`echo $ldver | \
    251 @@ -109089,7 +109089,7 @@
    252      echo "$as_me:$LINENO: checking for ld version" >&5
    253  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    254  
    255 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    256 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    257             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    258  
    259      glibcxx_gnu_ld_version=`echo $ldver | \
    260 @@ -109934,7 +109934,7 @@
    261      echo "$as_me:$LINENO: checking for ld version" >&5
    262  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    263  
    264 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    265 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    266             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    267  
    268      glibcxx_gnu_ld_version=`echo $ldver | \
    269 @@ -110828,7 +110828,7 @@
    270      echo "$as_me:$LINENO: checking for ld version" >&5
    271  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    272  
    273 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    274 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    275             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    276  
    277      glibcxx_gnu_ld_version=`echo $ldver | \
    278 @@ -112114,7 +112114,7 @@
    279      echo "$as_me:$LINENO: checking for ld version" >&5
    280  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    281  
    282 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    283 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    284             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    285  
    286      glibcxx_gnu_ld_version=`echo $ldver | \
    287 @@ -112850,7 +112850,7 @@
    288      echo "$as_me:$LINENO: checking for ld version" >&5
    289  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    290  
    291 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    292 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    293             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    294  
    295      glibcxx_gnu_ld_version=`echo $ldver | \
    296 @@ -113351,7 +113351,7 @@
    297      echo "$as_me:$LINENO: checking for ld version" >&5
    298  echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    299  
    300 -    ldver=`$LD --version 2>/dev/null | head -1 | \
    301 +    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    302             sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    303  
    304      glibcxx_gnu_ld_version=`echo $ldver | \
     204diff -Naur gcc-4.4.0.orig/libstdc++-v3/configure gcc-4.4.0/libstdc++-v3/configure
     205--- gcc-4.4.0.orig/libstdc++-v3/configure       2009-03-01 09:49:31.000000000 -0800
     206+++ gcc-4.4.0/libstdc++-v3/configure    2009-04-21 09:57:27.527186478 -0700
     207@@ -23489,7 +23489,7 @@
     208     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     209       glibcxx_ld_is_gold=yes
     210     fi
     211-    ldver=`$LD --version 2>/dev/null | head -1 | \
     212+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     213            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     214 
     215     glibcxx_gnu_ld_version=`echo $ldver | \
     216@@ -42055,7 +42055,7 @@
     217     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     218       glibcxx_ld_is_gold=yes
     219     fi
     220-    ldver=`$LD --version 2>/dev/null | head -1 | \
     221+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     222            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     223 
     224     glibcxx_gnu_ld_version=`echo $ldver | \
     225@@ -76333,7 +76333,7 @@
     226     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     227       glibcxx_ld_is_gold=yes
     228     fi
     229-    ldver=`$LD --version 2>/dev/null | head -1 | \
     230+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     231            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     232 
     233     glibcxx_gnu_ld_version=`echo $ldver | \
     234@@ -76645,7 +76645,7 @@
     235     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     236       glibcxx_ld_is_gold=yes
     237     fi
     238-    ldver=`$LD --version 2>/dev/null | head -1 | \
     239+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     240            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     241 
     242     glibcxx_gnu_ld_version=`echo $ldver | \
     243@@ -77328,7 +77328,7 @@
     244     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     245       glibcxx_ld_is_gold=yes
     246     fi
     247-    ldver=`$LD --version 2>/dev/null | head -1 | \
     248+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     249            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     250 
     251     glibcxx_gnu_ld_version=`echo $ldver | \
     252@@ -95080,7 +95080,7 @@
     253     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     254       glibcxx_ld_is_gold=yes
     255     fi
     256-    ldver=`$LD --version 2>/dev/null | head -1 | \
     257+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     258            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     259 
     260     glibcxx_gnu_ld_version=`echo $ldver | \
     261@@ -112274,7 +112274,7 @@
     262     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     263       glibcxx_ld_is_gold=yes
     264     fi
     265-    ldver=`$LD --version 2>/dev/null | head -1 | \
     266+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     267            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     268 
     269     glibcxx_gnu_ld_version=`echo $ldver | \
     270@@ -112493,7 +112493,7 @@
     271     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     272       glibcxx_ld_is_gold=yes
     273     fi
     274-    ldver=`$LD --version 2>/dev/null | head -1 | \
     275+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     276            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     277 
     278     glibcxx_gnu_ld_version=`echo $ldver | \
     279@@ -112678,7 +112678,7 @@
     280     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     281       glibcxx_ld_is_gold=yes
     282     fi
     283-    ldver=`$LD --version 2>/dev/null | head -1 | \
     284+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     285            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     286 
     287     glibcxx_gnu_ld_version=`echo $ldver | \
     288@@ -112899,7 +112899,7 @@
     289     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     290       glibcxx_ld_is_gold=yes
     291     fi
     292-    ldver=`$LD --version 2>/dev/null | head -1 | \
     293+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     294            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     295 
     296     glibcxx_gnu_ld_version=`echo $ldver | \
     297@@ -113121,7 +113121,7 @@
     298     if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
     299       glibcxx_ld_is_gold=yes
     300     fi
     301-    ldver=`$LD --version 2>/dev/null | head -1 | \
     302+    ldver=`$LD --version 2>/dev/null | head -n 1 | \
     303            sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
     304 
     305     glibcxx_gnu_ld_version=`echo $ldver | \
  • 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
  • patches/gcc-4.4.0-pure64_specs-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/alpha/gnu.h gcc-4.3.3/gcc/config/alpha/gnu.h
    10 --- gcc-4.3.3.orig/gcc/config/alpha/gnu.h       2004-09-07 17:17:19.000000000 -0700
    11 +++ gcc-4.3.3/gcc/config/alpha/gnu.h    2009-01-25 00:46:43.363275038 -0800
     9diff -Naur gcc-4.4.0.orig/gcc/config/alpha/gnu.h gcc-4.4.0/gcc/config/alpha/gnu.h
     10--- gcc-4.4.0.orig/gcc/config/alpha/gnu.h       2004-09-07 17:17:19.000000000 -0700
     11+++ gcc-4.4.0/gcc/config/alpha/gnu.h    2009-04-21 10:09:46.008647019 -0700
    1212@@ -11,7 +11,7 @@
    1313     } while (0)
     
    1919 #undef STARTFILE_SPEC
    2020 #define STARTFILE_SPEC \
    21 diff -Naur gcc-4.3.3.orig/gcc/config/alpha/linux-elf.h gcc-4.3.3/gcc/config/alpha/linux-elf.h
    22 --- gcc-4.3.3.orig/gcc/config/alpha/linux-elf.h 2007-08-02 03:49:31.000000000 -0700
    23 +++ gcc-4.3.3/gcc/config/alpha/linux-elf.h      2009-01-25 00:46:43.506828048 -0800
     21diff -Naur gcc-4.4.0.orig/gcc/config/alpha/linux-elf.h gcc-4.4.0/gcc/config/alpha/linux-elf.h
     22--- gcc-4.4.0.orig/gcc/config/alpha/linux-elf.h 2007-08-02 03:49:31.000000000 -0700
     23+++ gcc-4.4.0/gcc/config/alpha/linux-elf.h      2009-04-21 10:09:46.121789915 -0700
    2424@@ -27,8 +27,8 @@
    2525 #define EXTRA_SPECS \
     
    3333 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    3434 #else
    35 diff -Naur gcc-4.3.3.orig/gcc/config/arm/linux-eabi.h gcc-4.3.3/gcc/config/arm/linux-eabi.h
    36 --- gcc-4.3.3.orig/gcc/config/arm/linux-eabi.h  2007-11-08 05:44:09.000000000 -0800
    37 +++ gcc-4.3.3/gcc/config/arm/linux-eabi.h       2009-01-25 00:46:48.034939237 -0800
     35diff -Naur gcc-4.4.0.orig/gcc/config/arm/linux-eabi.h gcc-4.4.0/gcc/config/arm/linux-eabi.h
     36--- gcc-4.4.0.orig/gcc/config/arm/linux-eabi.h  2007-11-08 05:44:09.000000000 -0800
     37+++ gcc-4.4.0/gcc/config/arm/linux-eabi.h       2009-04-21 10:09:50.440732227 -0700
    3838@@ -61,7 +61,7 @@
    3939 /* Use ld-linux.so.3 so that it will be possible to run "classic"
     
    4545 /* At this point, bpabi.h will have clobbered LINK_SPEC.  We want to
    4646    use the GNU/Linux version, not the generic BPABI version.  */
    47 diff -Naur gcc-4.3.3.orig/gcc/config/arm/linux-elf.h gcc-4.3.3/gcc/config/arm/linux-elf.h
    48 --- gcc-4.3.3.orig/gcc/config/arm/linux-elf.h   2007-11-08 05:44:09.000000000 -0800
    49 +++ gcc-4.3.3/gcc/config/arm/linux-elf.h        2009-01-25 00:46:47.747830702 -0800
     47diff -Naur gcc-4.4.0.orig/gcc/config/arm/linux-elf.h gcc-4.4.0/gcc/config/arm/linux-elf.h
     48--- gcc-4.4.0.orig/gcc/config/arm/linux-elf.h   2009-02-20 07:20:38.000000000 -0800
     49+++ gcc-4.4.0/gcc/config/arm/linux-elf.h        2009-04-21 10:09:50.233952787 -0700
    5050@@ -62,7 +62,7 @@
    5151 
     
    5757 #define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
    5858    %{b} \
    59 diff -Naur gcc-4.3.3.orig/gcc/config/bfin/linux.h gcc-4.3.3/gcc/config/bfin/linux.h
    60 --- gcc-4.3.3.orig/gcc/config/bfin/linux.h      2007-09-05 17:09:05.000000000 -0700
    61 +++ gcc-4.3.3/gcc/config/bfin/linux.h   2009-01-25 00:46:40.418363458 -0800
     59diff -Naur gcc-4.4.0.orig/gcc/config/bfin/linux.h gcc-4.4.0/gcc/config/bfin/linux.h
     60--- gcc-4.4.0.orig/gcc/config/bfin/linux.h      2008-11-27 01:11:50.000000000 -0800
     61+++ gcc-4.4.0/gcc/config/bfin/linux.h   2009-04-21 10:09:43.316621596 -0700
    6262@@ -22,7 +22,7 @@
    6363   %{shared:-G -Bdynamic} \
     
    6969 
    7070 #define MD_UNWIND_SUPPORT "config/bfin/linux-unwind.h"
    71 diff -Naur gcc-4.3.3.orig/gcc/config/cris/linux.h gcc-4.3.3/gcc/config/cris/linux.h
    72 --- gcc-4.3.3.orig/gcc/config/cris/linux.h      2008-01-23 09:17:58.000000000 -0800
    73 +++ gcc-4.3.3/gcc/config/cris/linux.h   2009-01-25 00:46:38.092783349 -0800
    74 @@ -102,7 +102,7 @@
     71diff -Naur gcc-4.4.0.orig/gcc/config/cris/linux.h gcc-4.4.0/gcc/config/cris/linux.h
     72--- gcc-4.4.0.orig/gcc/config/cris/linux.h      2009-03-22 08:15:04.000000000 -0700
     73+++ gcc-4.4.0/gcc/config/cris/linux.h   2009-04-21 10:09:40.257856685 -0700
     74@@ -103,7 +103,7 @@
    7575 #undef CRIS_DEFAULT_CPU_VERSION
    7676 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
     
    8181 /* We need an -rpath-link to ld.so.1, and presumably to each directory
    8282    specified with -B.  */
    83 diff -Naur gcc-4.3.3.orig/gcc/config/frv/linux.h gcc-4.3.3/gcc/config/frv/linux.h
    84 --- gcc-4.3.3.orig/gcc/config/frv/linux.h       2007-08-02 03:49:31.000000000 -0700
    85 +++ gcc-4.3.3/gcc/config/frv/linux.h    2009-01-25 00:46:37.813879592 -0800
     83diff -Naur gcc-4.4.0.orig/gcc/config/frv/linux.h gcc-4.4.0/gcc/config/frv/linux.h
     84--- gcc-4.4.0.orig/gcc/config/frv/linux.h       2007-08-02 03:49:31.000000000 -0700
     85+++ gcc-4.4.0/gcc/config/frv/linux.h    2009-04-21 10:09:39.996456769 -0700
    8686@@ -35,7 +35,7 @@
    8787 #define ENDFILE_SPEC \
     
    9393 #undef LINK_SPEC
    9494 #define LINK_SPEC "\
    95 diff -Naur gcc-4.3.3.orig/gcc/config/i386/gnu.h gcc-4.3.3/gcc/config/i386/gnu.h
    96 --- gcc-4.3.3.orig/gcc/config/i386/gnu.h        2007-08-07 23:35:17.000000000 -0700
    97 +++ gcc-4.3.3/gcc/config/i386/gnu.h     2009-01-25 00:46:40.849024165 -0800
    98 @@ -22,7 +22,7 @@
    99    %{!shared: \
    100      %{!static: \
    101        %{rdynamic:-export-dynamic} \
    102 -      %{!dynamic-linker:-dynamic-linker /lib/ld.so}} \
    103 +      %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so}} \
    104      %{static:-static}}"
    105  
    106  #undef STARTFILE_SPEC
    107 diff -Naur gcc-4.3.3.orig/gcc/config/i386/linux64.h gcc-4.3.3/gcc/config/i386/linux64.h
    108 --- gcc-4.3.3.orig/gcc/config/i386/linux64.h    2007-08-02 03:49:31.000000000 -0700
    109 +++ gcc-4.3.3/gcc/config/i386/linux64.h 2009-01-25 00:46:40.578323788 -0800
    110 @@ -53,8 +53,8 @@
     95diff -Naur gcc-4.4.0.orig/gcc/config/i386/gnu.h gcc-4.4.0/gcc/config/i386/gnu.h
     96--- gcc-4.4.0.orig/gcc/config/i386/gnu.h        2008-11-13 15:28:46.000000000 -0800
     97+++ gcc-4.4.0/gcc/config/i386/gnu.h     2009-04-21 10:09:43.601430088 -0700
     98@@ -21,7 +21,7 @@
     99 */
     100 
     101 #undef GLIBC_DYNAMIC_LINKER
     102-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so"
     103+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so"
     104 
     105 #undef TARGET_VERSION
     106 #define TARGET_VERSION fprintf (stderr, " (i386 GNU)");
     107diff -Naur gcc-4.4.0.orig/gcc/config/i386/linux64.h gcc-4.4.0/gcc/config/i386/linux64.h
     108--- gcc-4.4.0.orig/gcc/config/i386/linux64.h    2009-04-09 16:23:07.000000000 -0700
     109+++ gcc-4.4.0/gcc/config/i386/linux64.h 2009-04-21 10:09:43.480484706 -0700
     110@@ -58,8 +58,8 @@
    111111    When the -shared link option is used a final link is not being
    112112    done.  */
     
    117117+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-linux-x86-64.so.2"
    118118 
    119  #if TARGET_64BIT_DEFAULT
    120  #define SPEC_32 "m32"
    121 diff -Naur gcc-4.3.3.orig/gcc/config/i386/linux.h gcc-4.3.3/gcc/config/i386/linux.h
    122 --- gcc-4.3.3.orig/gcc/config/i386/linux.h      2007-11-27 17:04:27.000000000 -0800
    123 +++ gcc-4.3.3/gcc/config/i386/linux.h   2009-01-25 00:46:42.161519765 -0800
     119 #undef ASM_SPEC
     120 #define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} \
     121diff -Naur gcc-4.4.0.orig/gcc/config/i386/linux.h gcc-4.4.0/gcc/config/i386/linux.h
     122--- gcc-4.4.0.orig/gcc/config/i386/linux.h      2009-02-20 07:20:38.000000000 -0800
     123+++ gcc-4.4.0/gcc/config/i386/linux.h   2009-04-21 10:09:44.806987009 -0700
    124124@@ -100,7 +100,7 @@
    125125 
     
    129129+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    130130 
    131  #undef  SUBTARGET_EXTRA_SPECS
    132  #define SUBTARGET_EXTRA_SPECS \
    133 diff -Naur gcc-4.3.3.orig/gcc/config/ia64/linux.h gcc-4.3.3/gcc/config/ia64/linux.h
    134 --- gcc-4.3.3.orig/gcc/config/ia64/linux.h      2006-12-12 07:15:19.000000000 -0800
    135 +++ gcc-4.3.3/gcc/config/ia64/linux.h   2009-01-25 00:46:43.236127392 -0800
     131 #undef  ASM_SPEC
     132 #define ASM_SPEC \
     133diff -Naur gcc-4.4.0.orig/gcc/config/ia64/linux.h gcc-4.4.0/gcc/config/ia64/linux.h
     134--- gcc-4.4.0.orig/gcc/config/ia64/linux.h      2009-02-12 08:30:53.000000000 -0800
     135+++ gcc-4.4.0/gcc/config/ia64/linux.h   2009-04-21 10:09:45.879897193 -0700
    136136@@ -37,7 +37,7 @@
    137137 /* Define this for shared library support because it isn't in the main
     
    143143 #undef LINK_SPEC
    144144 #define LINK_SPEC "\
    145 diff -Naur gcc-4.3.3.orig/gcc/config/linux.h gcc-4.3.3/gcc/config/linux.h
    146 --- gcc-4.3.3.orig/gcc/config/linux.h   2007-08-02 03:49:31.000000000 -0700
    147 +++ gcc-4.3.3/gcc/config/linux.h        2009-01-25 00:46:46.090803184 -0800
    148 @@ -112,9 +112,9 @@
     145diff -Naur gcc-4.4.0.orig/gcc/config/kopensolaris-gnu.h gcc-4.4.0/gcc/config/kopensolaris-gnu.h
     146--- gcc-4.4.0.orig/gcc/config/kopensolaris-gnu.h        2009-01-29 10:48:41.000000000 -0800
     147+++ gcc-4.4.0/gcc/config/kopensolaris-gnu.h     2009-04-21 10:09:51.100084091 -0700
     148@@ -33,5 +33,5 @@
     149 
     150 #ifdef GLIBC_DYNAMIC_LINKER
     151 #undef GLIBC_DYNAMIC_LINKER
     152-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     153+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
     154 #endif
     155diff -Naur gcc-4.4.0.orig/gcc/config/linux.h gcc-4.4.0/gcc/config/linux.h
     156--- gcc-4.4.0.orig/gcc/config/linux.h   2009-04-09 16:23:07.000000000 -0700
     157+++ gcc-4.4.0/gcc/config/linux.h        2009-04-21 10:09:48.591428691 -0700
     158@@ -117,9 +117,9 @@
    149159    GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
    150160    GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
     
    159169   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
    160170 #define LINUX_DYNAMIC_LINKER32 \
    161 diff -Naur gcc-4.3.3.orig/gcc/config/m32r/linux.h gcc-4.3.3/gcc/config/m32r/linux.h
    162 --- gcc-4.3.3.orig/gcc/config/m32r/linux.h      2007-08-02 03:49:31.000000000 -0700
    163 +++ gcc-4.3.3/gcc/config/m32r/linux.h   2009-01-25 00:46:40.180472971 -0800
     171diff -Naur gcc-4.4.0.orig/gcc/config/m32r/linux.h gcc-4.4.0/gcc/config/m32r/linux.h
     172--- gcc-4.4.0.orig/gcc/config/m32r/linux.h      2007-08-02 03:49:31.000000000 -0700
     173+++ gcc-4.4.0/gcc/config/m32r/linux.h   2009-04-21 10:09:43.059122504 -0700
    164174@@ -58,7 +58,7 @@
    165175 
     
    171181 #undef LINK_SPEC
    172182 #if TARGET_LITTLE_ENDIAN
    173 diff -Naur gcc-4.3.3.orig/gcc/config/m68k/linux.h gcc-4.3.3/gcc/config/m68k/linux.h
    174 --- gcc-4.3.3.orig/gcc/config/m68k/linux.h      2007-09-24 14:07:08.000000000 -0700
    175 +++ gcc-4.3.3/gcc/config/m68k/linux.h   2009-01-25 00:46:38.769538482 -0800
     183diff -Naur gcc-4.4.0.orig/gcc/config/m68k/linux.h gcc-4.4.0/gcc/config/m68k/linux.h
     184--- gcc-4.4.0.orig/gcc/config/m68k/linux.h      2007-09-24 14:07:08.000000000 -0700
     185+++ gcc-4.4.0/gcc/config/m68k/linux.h   2009-04-21 10:09:40.768950971 -0700
    176186@@ -84,7 +84,7 @@
    177187 
     
    183193 #undef LINK_SPEC
    184194 #define LINK_SPEC "-m m68kelf %{shared} \
    185 diff -Naur gcc-4.3.3.orig/gcc/config/mips/linux64.h gcc-4.3.3/gcc/config/mips/linux64.h
    186 --- gcc-4.3.3.orig/gcc/config/mips/linux64.h    2007-08-02 03:49:31.000000000 -0700
    187 +++ gcc-4.3.3/gcc/config/mips/linux64.h 2009-01-25 00:46:46.197444615 -0800
    188 @@ -38,10 +38,10 @@
     195diff -Naur gcc-4.4.0.orig/gcc/config/mips/linux64.h gcc-4.4.0/gcc/config/mips/linux64.h
     196--- gcc-4.4.0.orig/gcc/config/mips/linux64.h    2009-02-20 07:20:38.000000000 -0800
     197+++ gcc-4.4.0/gcc/config/mips/linux64.h 2009-04-21 10:09:48.700669088 -0700
     198@@ -35,10 +35,10 @@
    189199 %{!shared: \
    190200   %{profile:-lc_p} %{!profile:-lc}}"
     
    201211   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
    202212 
    203 diff -Naur gcc-4.3.3.orig/gcc/config/mips/linux.h gcc-4.3.3/gcc/config/mips/linux.h
    204 --- gcc-4.3.3.orig/gcc/config/mips/linux.h      2007-10-21 02:20:49.000000000 -0700
    205 +++ gcc-4.3.3/gcc/config/mips/linux.h   2009-01-25 00:46:46.685527587 -0800
     213diff -Naur gcc-4.4.0.orig/gcc/config/mips/linux.h gcc-4.4.0/gcc/config/mips/linux.h
     214--- gcc-4.4.0.orig/gcc/config/mips/linux.h      2009-02-20 07:20:38.000000000 -0800
     215+++ gcc-4.4.0/gcc/config/mips/linux.h   2009-04-21 10:09:49.211763096 -0700
    206216@@ -64,7 +64,7 @@
    207217 #undef MIPS_DEFAULT_GVALUE
     
    213223 /* Borrowed from sparc/linux.h */
    214224 #undef LINK_SPEC
    215 diff -Naur gcc-4.3.3.orig/gcc/config/mn10300/linux.h gcc-4.3.3/gcc/config/mn10300/linux.h
    216 --- gcc-4.3.3.orig/gcc/config/mn10300/linux.h   2007-08-02 03:49:31.000000000 -0700
    217 +++ gcc-4.3.3/gcc/config/mn10300/linux.h        2009-01-25 00:46:47.091582902 -0800
     225diff -Naur gcc-4.4.0.orig/gcc/config/mn10300/linux.h gcc-4.4.0/gcc/config/mn10300/linux.h
     226--- gcc-4.4.0.orig/gcc/config/mn10300/linux.h   2007-08-02 03:49:31.000000000 -0700
     227+++ gcc-4.4.0/gcc/config/mn10300/linux.h        2009-04-21 10:09:49.613617265 -0700
    218228@@ -32,7 +32,7 @@
    219229 #undef  ASM_SPEC
     
    225235 #undef  LINK_SPEC
    226236 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
    227 diff -Naur gcc-4.3.3.orig/gcc/config/pa/pa-linux.h gcc-4.3.3/gcc/config/pa/pa-linux.h
    228 --- gcc-4.3.3.orig/gcc/config/pa/pa-linux.h     2007-08-02 03:49:31.000000000 -0700
    229 +++ gcc-4.3.3/gcc/config/pa/pa-linux.h  2009-01-25 00:46:45.143347394 -0800
     237diff -Naur gcc-4.4.0.orig/gcc/config/pa/pa-linux.h gcc-4.4.0/gcc/config/pa/pa-linux.h
     238--- gcc-4.4.0.orig/gcc/config/pa/pa-linux.h     2007-08-02 03:49:31.000000000 -0700
     239+++ gcc-4.4.0/gcc/config/pa/pa-linux.h  2009-04-21 10:09:47.709694092 -0700
    230240@@ -44,7 +44,7 @@
    231241 /* Define this for shared library support because it isn't in the main
     
    237247 #undef LINK_SPEC
    238248 #define LINK_SPEC "\
    239 diff -Naur gcc-4.3.3.orig/gcc/config/rs6000/linux64.h gcc-4.3.3/gcc/config/rs6000/linux64.h
    240 --- gcc-4.3.3.orig/gcc/config/rs6000/linux64.h  2007-08-02 03:49:31.000000000 -0700
    241 +++ gcc-4.3.3/gcc/config/rs6000/linux64.h       2009-01-25 00:46:36.037907528 -0800
    242 @@ -339,10 +339,10 @@
     249diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/linux64.h gcc-4.4.0/gcc/config/rs6000/linux64.h
     250--- gcc-4.4.0.orig/gcc/config/rs6000/linux64.h  2009-04-09 16:23:07.000000000 -0700
     251+++ gcc-4.4.0/gcc/config/rs6000/linux64.h       2009-04-21 10:09:38.246016484 -0700
     252@@ -342,10 +342,10 @@
    243253 #undef LINK_OS_DEFAULT_SPEC
    244254 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
     
    255265 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    256266 #else
    257 diff -Naur gcc-4.3.3.orig/gcc/config/rs6000/sysv4.h gcc-4.3.3/gcc/config/rs6000/sysv4.h
    258 --- gcc-4.3.3.orig/gcc/config/rs6000/sysv4.h    2007-08-08 12:33:24.000000000 -0700
    259 +++ gcc-4.3.3/gcc/config/rs6000/sysv4.h 2009-01-25 00:46:36.316812403 -0800
    260 @@ -891,8 +891,8 @@
     267diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/sysv4.h gcc-4.4.0/gcc/config/rs6000/sysv4.h
     268--- gcc-4.4.0.orig/gcc/config/rs6000/sysv4.h    2009-04-09 16:23:07.000000000 -0700
     269+++ gcc-4.4.0/gcc/config/rs6000/sysv4.h 2009-04-21 10:09:38.529498813 -0700
     270@@ -901,8 +901,8 @@
    261271 
    262272 #define LINK_START_LINUX_SPEC ""
     
    269279 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    270280 #else
    271 @@ -934,7 +934,7 @@
     281@@ -944,7 +944,7 @@
    272282 
    273283 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
     
    278288 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__   \
    279289 %{!undef:                                                      \
    280 diff -Naur gcc-4.3.3.orig/gcc/config/s390/linux.h gcc-4.3.3/gcc/config/s390/linux.h
    281 --- gcc-4.3.3.orig/gcc/config/s390/linux.h      2007-08-02 03:49:31.000000000 -0700
    282 +++ gcc-4.3.3/gcc/config/s390/linux.h   2009-01-25 00:46:39.536529682 -0800
     290diff -Naur gcc-4.4.0.orig/gcc/config/s390/linux.h gcc-4.4.0/gcc/config/s390/linux.h
     291--- gcc-4.4.0.orig/gcc/config/s390/linux.h      2007-08-02 03:49:31.000000000 -0700
     292+++ gcc-4.4.0/gcc/config/s390/linux.h   2009-04-21 10:09:42.454394469 -0700
    283293@@ -72,8 +72,8 @@
    284294 #define MULTILIB_DEFAULTS { "m31" }
     
    292302 #undef  LINK_SPEC
    293303 #define LINK_SPEC \
    294 diff -Naur gcc-4.3.3.orig/gcc/config/sh/linux.h gcc-4.3.3/gcc/config/sh/linux.h
    295 --- gcc-4.3.3.orig/gcc/config/sh/linux.h        2007-08-02 03:49:31.000000000 -0700
    296 +++ gcc-4.3.3/gcc/config/sh/linux.h     2009-01-25 00:46:44.454287190 -0800
     304diff -Naur gcc-4.4.0.orig/gcc/config/sh/linux.h gcc-4.4.0/gcc/config/sh/linux.h
     305--- gcc-4.4.0.orig/gcc/config/sh/linux.h        2007-08-02 03:49:31.000000000 -0700
     306+++ gcc-4.4.0/gcc/config/sh/linux.h     2009-04-21 10:09:47.046441123 -0700
    297307@@ -47,7 +47,7 @@
    298308 
     
    304314 #undef SUBTARGET_LINK_EMUL_SUFFIX
    305315 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
    306 diff -Naur gcc-4.3.3.orig/gcc/config/sparc/linux64.h gcc-4.3.3/gcc/config/sparc/linux64.h
    307 --- gcc-4.3.3.orig/gcc/config/sparc/linux64.h   2007-10-18 21:29:38.000000000 -0700
    308 +++ gcc-4.3.3/gcc/config/sparc/linux64.h        2009-01-25 00:46:48.145679843 -0800
    309 @@ -144,10 +144,10 @@
     316diff -Naur gcc-4.4.0.orig/gcc/config/sparc/linux64.h gcc-4.4.0/gcc/config/sparc/linux64.h
     317--- gcc-4.4.0.orig/gcc/config/sparc/linux64.h   2009-02-20 07:20:38.000000000 -0800
     318+++ gcc-4.4.0/gcc/config/sparc/linux64.h        2009-04-21 10:09:50.518762676 -0700
     319@@ -109,8 +109,8 @@
    310320 
    311321 /* If ELF is the default format, we should not use /lib/elf.  */
     
    313323-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
    314324-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
    315 -#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    316 -#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
    317325+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-linux.so.2"
    318326+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-linux.so.2"
    319 +#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-uClibc.so.0"
    320 +#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
    321  #if UCLIBC_DEFAULT
    322  #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    323  #else
    324 @@ -167,7 +167,7 @@
     327 
     328 #ifdef SPARC_BI_ARCH
     329 
     330@@ -121,7 +121,7 @@
    325331   { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },       \
    326332   { "link_arch",        LINK_ARCH_SPEC },
    327333 
    328 -#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
    329 +#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/tools/lib32 %{shared:-shared} \
     334-#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
     335+#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/tools/lib32 %{shared:-shared} \
    330336   %{!shared: \
    331337     %{!ibcs: \
    332338       %{!static: \
    333 @@ -176,7 +176,7 @@
     339@@ -130,7 +130,7 @@
    334340         %{static:-static}}} \
    335341 "
    336342 
    337 -#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
    338 +#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/tools/lib %{shared:-shared} \
     343-#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     344+#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/tools/lib %{shared:-shared} \
    339345   %{!shared: \
    340346     %{!ibcs: \
    341347       %{!static: \
    342 @@ -257,7 +257,7 @@
     348@@ -211,7 +211,7 @@
    343349 #else /* !SPARC_BI_ARCH */
    344350 
    345351 #undef LINK_SPEC
    346 -#define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
    347 +#define LINK_SPEC "-m elf64_sparc -Y P,/tools/lib %{shared:-shared} \
     352-#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     353+#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib %{shared:-shared} \
    348354   %{!shared: \
    349355     %{!ibcs: \
    350356       %{!static: \
    351 diff -Naur gcc-4.3.3.orig/gcc/config/sparc/linux.h gcc-4.3.3/gcc/config/sparc/linux.h
    352 --- gcc-4.3.3.orig/gcc/config/sparc/linux.h     2007-08-02 03:49:31.000000000 -0700
    353 +++ gcc-4.3.3/gcc/config/sparc/linux.h  2009-01-25 00:46:48.494310657 -0800
    354 @@ -120,8 +120,8 @@
     357diff -Naur gcc-4.4.0.orig/gcc/config/sparc/linux.h gcc-4.4.0/gcc/config/sparc/linux.h
     358--- gcc-4.4.0.orig/gcc/config/sparc/linux.h     2009-02-20 07:20:38.000000000 -0800
     359+++ gcc-4.4.0/gcc/config/sparc/linux.h  2009-04-21 10:09:50.838684733 -0700
     360@@ -83,10 +83,10 @@
    355361 
    356362 /* If ELF is the default format, we should not use /lib/elf.  */
    357363 
    358364-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
    359 -#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
    360 +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    361 +#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
    362  #if UCLIBC_DEFAULT
    363  #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    364  #else
    365 @@ -132,7 +132,7 @@
    366  
     365+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    367366 
    368367 #undef  LINK_SPEC
     
    372371   %{!shared: \
    373372     %{!ibcs: \
    374 diff -Naur gcc-4.3.3.orig/gcc/config/xtensa/linux.h gcc-4.3.3/gcc/config/xtensa/linux.h
    375 --- gcc-4.3.3.orig/gcc/config/xtensa/linux.h    2008-01-17 17:37:53.000000000 -0800
    376 +++ gcc-4.3.3/gcc/config/xtensa/linux.h 2009-01-25 00:46:37.658018717 -0800
     373diff -Naur gcc-4.4.0.orig/gcc/config/xtensa/linux.h gcc-4.4.0/gcc/config/xtensa/linux.h
     374--- gcc-4.4.0.orig/gcc/config/xtensa/linux.h    2008-01-17 17:37:53.000000000 -0800
     375+++ gcc-4.4.0/gcc/config/xtensa/linux.h 2009-04-21 10:09:39.836497556 -0700
    377376@@ -43,7 +43,7 @@
    378377   %{mlongcalls:--longcalls} \
  • patches/gcc-4.4.0-specs-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/alpha/gnu.h gcc-4.3.3/gcc/config/alpha/gnu.h
    10 --- gcc-4.3.3.orig/gcc/config/alpha/gnu.h       2004-09-07 17:17:19.000000000 -0700
    11 +++ gcc-4.3.3/gcc/config/alpha/gnu.h    2009-01-25 00:44:15.387601620 -0800
     9diff -Naur gcc-4.4.0.orig/gcc/config/alpha/gnu.h gcc-4.4.0/gcc/config/alpha/gnu.h
     10--- gcc-4.4.0.orig/gcc/config/alpha/gnu.h       2004-09-07 17:17:19.000000000 -0700
     11+++ gcc-4.4.0/gcc/config/alpha/gnu.h    2009-04-21 10:05:33.058642828 -0700
    1212@@ -11,7 +11,7 @@
    1313     } while (0)
     
    1919 #undef STARTFILE_SPEC
    2020 #define STARTFILE_SPEC \
    21 diff -Naur gcc-4.3.3.orig/gcc/config/alpha/linux-elf.h gcc-4.3.3/gcc/config/alpha/linux-elf.h
    22 --- gcc-4.3.3.orig/gcc/config/alpha/linux-elf.h 2007-08-02 03:49:31.000000000 -0700
    23 +++ gcc-4.3.3/gcc/config/alpha/linux-elf.h      2009-01-25 00:44:15.527054895 -0800
     21diff -Naur gcc-4.4.0.orig/gcc/config/alpha/linux-elf.h gcc-4.4.0/gcc/config/alpha/linux-elf.h
     22--- gcc-4.4.0.orig/gcc/config/alpha/linux-elf.h 2007-08-02 03:49:31.000000000 -0700
     23+++ gcc-4.4.0/gcc/config/alpha/linux-elf.h      2009-04-21 10:05:33.167886578 -0700
    2424@@ -27,8 +27,8 @@
    2525 #define EXTRA_SPECS \
     
    3333 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    3434 #else
    35 diff -Naur gcc-4.3.3.orig/gcc/config/arm/linux-eabi.h gcc-4.3.3/gcc/config/arm/linux-eabi.h
    36 --- gcc-4.3.3.orig/gcc/config/arm/linux-eabi.h  2007-11-08 05:44:09.000000000 -0800
    37 +++ gcc-4.3.3/gcc/config/arm/linux-eabi.h       2009-01-25 00:44:20.001844391 -0800
     35diff -Naur gcc-4.4.0.orig/gcc/config/arm/linux-eabi.h gcc-4.4.0/gcc/config/arm/linux-eabi.h
     36--- gcc-4.4.0.orig/gcc/config/arm/linux-eabi.h  2007-11-08 05:44:09.000000000 -0800
     37+++ gcc-4.4.0/gcc/config/arm/linux-eabi.h       2009-04-21 10:05:37.592169299 -0700
    3838@@ -61,7 +61,7 @@
    3939 /* Use ld-linux.so.3 so that it will be possible to run "classic"
     
    4545 /* At this point, bpabi.h will have clobbered LINK_SPEC.  We want to
    4646    use the GNU/Linux version, not the generic BPABI version.  */
    47 diff -Naur gcc-4.3.3.orig/gcc/config/arm/linux-elf.h gcc-4.3.3/gcc/config/arm/linux-elf.h
    48 --- gcc-4.3.3.orig/gcc/config/arm/linux-elf.h   2007-11-08 05:44:09.000000000 -0800
    49 +++ gcc-4.3.3/gcc/config/arm/linux-elf.h        2009-01-25 00:44:19.714736136 -0800
     47diff -Naur gcc-4.4.0.orig/gcc/config/arm/linux-elf.h gcc-4.4.0/gcc/config/arm/linux-elf.h
     48--- gcc-4.4.0.orig/gcc/config/arm/linux-elf.h   2009-02-20 07:20:38.000000000 -0800
     49+++ gcc-4.4.0/gcc/config/arm/linux-elf.h        2009-04-21 10:05:37.389291242 -0700
    5050@@ -62,7 +62,7 @@
    5151 
     
    5757 #define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
    5858    %{b} \
    59 diff -Naur gcc-4.3.3.orig/gcc/config/bfin/linux.h gcc-4.3.3/gcc/config/bfin/linux.h
    60 --- gcc-4.3.3.orig/gcc/config/bfin/linux.h      2007-09-05 17:09:05.000000000 -0700
    61 +++ gcc-4.3.3/gcc/config/bfin/linux.h   2009-01-25 00:44:12.614954881 -0800
     59diff -Naur gcc-4.4.0.orig/gcc/config/bfin/linux.h gcc-4.4.0/gcc/config/bfin/linux.h
     60--- gcc-4.4.0.orig/gcc/config/bfin/linux.h      2008-11-27 01:11:50.000000000 -0800
     61+++ gcc-4.4.0/gcc/config/bfin/linux.h   2009-04-21 10:05:29.793102668 -0700
    6262@@ -22,7 +22,7 @@
    6363   %{shared:-G -Bdynamic} \
     
    6969 
    7070 #define MD_UNWIND_SUPPORT "config/bfin/linux-unwind.h"
    71 diff -Naur gcc-4.3.3.orig/gcc/config/cris/linux.h gcc-4.3.3/gcc/config/cris/linux.h
    72 --- gcc-4.3.3.orig/gcc/config/cris/linux.h      2008-01-23 09:17:58.000000000 -0800
    73 +++ gcc-4.3.3/gcc/config/cris/linux.h   2009-01-25 00:44:10.547772593 -0800
    74 @@ -102,7 +102,7 @@
     71diff -Naur gcc-4.4.0.orig/gcc/config/cris/linux.h gcc-4.4.0/gcc/config/cris/linux.h
     72--- gcc-4.4.0.orig/gcc/config/cris/linux.h      2009-03-22 08:15:04.000000000 -0700
     73+++ gcc-4.4.0/gcc/config/cris/linux.h   2009-04-21 10:05:27.167401313 -0700
     74@@ -103,7 +103,7 @@
    7575 #undef CRIS_DEFAULT_CPU_VERSION
    7676 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
     
    8181 /* We need an -rpath-link to ld.so.1, and presumably to each directory
    8282    specified with -B.  */
    83 diff -Naur gcc-4.3.3.orig/gcc/config/frv/linux.h gcc-4.3.3/gcc/config/frv/linux.h
    84 --- gcc-4.3.3.orig/gcc/config/frv/linux.h       2007-08-02 03:49:31.000000000 -0700
    85 +++ gcc-4.3.3/gcc/config/frv/linux.h    2009-01-25 00:44:10.199141500 -0800
     83diff -Naur gcc-4.4.0.orig/gcc/config/frv/linux.h gcc-4.4.0/gcc/config/frv/linux.h
     84--- gcc-4.4.0.orig/gcc/config/frv/linux.h       2007-08-02 03:49:31.000000000 -0700
     85+++ gcc-4.4.0/gcc/config/frv/linux.h    2009-04-21 10:05:26.843578992 -0700
    8686@@ -35,7 +35,7 @@
    8787 #define ENDFILE_SPEC \
     
    9393 #undef LINK_SPEC
    9494 #define LINK_SPEC "\
    95 diff -Naur gcc-4.3.3.orig/gcc/config/i386/gnu.h gcc-4.3.3/gcc/config/i386/gnu.h
    96 --- gcc-4.3.3.orig/gcc/config/i386/gnu.h        2007-08-07 23:35:17.000000000 -0700
    97 +++ gcc-4.3.3/gcc/config/i386/gnu.h     2009-01-25 00:44:12.893860874 -0800
    98 @@ -22,7 +22,7 @@
    99    %{!shared: \
    100      %{!static: \
    101        %{rdynamic:-export-dynamic} \
    102 -      %{!dynamic-linker:-dynamic-linker /lib/ld.so}} \
    103 +      %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so}} \
    104      %{static:-static}}"
    105  
    106  #undef STARTFILE_SPEC
    107 diff -Naur gcc-4.3.3.orig/gcc/config/i386/linux64.h gcc-4.3.3/gcc/config/i386/linux64.h
    108 --- gcc-4.3.3.orig/gcc/config/i386/linux64.h    2007-08-02 03:49:31.000000000 -0700
    109 +++ gcc-4.3.3/gcc/config/i386/linux64.h 2009-01-25 00:44:12.770812683 -0800
    110 @@ -53,8 +53,8 @@
     95diff -Naur gcc-4.4.0.orig/gcc/config/i386/gnu.h gcc-4.4.0/gcc/config/i386/gnu.h
     96--- gcc-4.4.0.orig/gcc/config/i386/gnu.h        2008-11-13 15:28:46.000000000 -0800
     97+++ gcc-4.4.0/gcc/config/i386/gnu.h     2009-04-21 10:05:30.113024445 -0700
     98@@ -21,7 +21,7 @@
     99 */
     100 
     101 #undef GLIBC_DYNAMIC_LINKER
     102-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so"
     103+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so"
     104 
     105 #undef TARGET_VERSION
     106 #define TARGET_VERSION fprintf (stderr, " (i386 GNU)");
     107diff -Naur gcc-4.4.0.orig/gcc/config/i386/linux64.h gcc-4.4.0/gcc/config/i386/linux64.h
     108--- gcc-4.4.0.orig/gcc/config/i386/linux64.h    2009-04-09 16:23:07.000000000 -0700
     109+++ gcc-4.4.0/gcc/config/i386/linux64.h 2009-04-21 10:05:29.968667692 -0700
     110@@ -58,8 +58,8 @@
    111111    When the -shared link option is used a final link is not being
    112112    done.  */
     
    117117+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux-x86-64.so.2"
    118118 
    119  #if TARGET_64BIT_DEFAULT
    120  #define SPEC_32 "m32"
    121 diff -Naur gcc-4.3.3.orig/gcc/config/i386/linux.h gcc-4.3.3/gcc/config/i386/linux.h
    122 --- gcc-4.3.3.orig/gcc/config/i386/linux.h      2007-11-27 17:04:27.000000000 -0800
    123 +++ gcc-4.3.3/gcc/config/i386/linux.h   2009-01-25 00:44:14.194051683 -0800
     119 #undef ASM_SPEC
     120 #define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} \
     121diff -Naur gcc-4.4.0.orig/gcc/config/i386/linux.h gcc-4.4.0/gcc/config/i386/linux.h
     122--- gcc-4.4.0.orig/gcc/config/i386/linux.h      2009-02-20 07:20:38.000000000 -0800
     123+++ gcc-4.4.0/gcc/config/i386/linux.h   2009-04-21 10:05:31.665813103 -0700
    124124@@ -100,7 +100,7 @@
    125125 
     
    129129+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    130130 
    131  #undef  SUBTARGET_EXTRA_SPECS
    132  #define SUBTARGET_EXTRA_SPECS \
    133 diff -Naur gcc-4.3.3.orig/gcc/config/ia64/linux.h gcc-4.3.3/gcc/config/ia64/linux.h
    134 --- gcc-4.3.3.orig/gcc/config/ia64/linux.h      2006-12-12 07:15:19.000000000 -0800
    135 +++ gcc-4.3.3/gcc/config/ia64/linux.h   2009-01-25 00:44:15.260453415 -0800
     131 #undef  ASM_SPEC
     132 #define ASM_SPEC \
     133diff -Naur gcc-4.4.0.orig/gcc/config/ia64/linux.h gcc-4.4.0/gcc/config/ia64/linux.h
     134--- gcc-4.4.0.orig/gcc/config/ia64/linux.h      2009-02-12 08:30:53.000000000 -0800
     135+++ gcc-4.4.0/gcc/config/ia64/linux.h   2009-04-21 10:05:32.933795782 -0700
    136136@@ -37,7 +37,7 @@
    137137 /* Define this for shared library support because it isn't in the main
     
    143143 #undef LINK_SPEC
    144144 #define LINK_SPEC "\
    145 diff -Naur gcc-4.3.3.orig/gcc/config/linux.h gcc-4.3.3/gcc/config/linux.h
    146 --- gcc-4.3.3.orig/gcc/config/linux.h   2007-08-02 03:49:31.000000000 -0700
    147 +++ gcc-4.3.3/gcc/config/linux.h        2009-01-25 00:44:18.070013688 -0800
    148 @@ -112,9 +112,9 @@
     145diff -Naur gcc-4.4.0.orig/gcc/config/kopensolaris-gnu.h gcc-4.4.0/gcc/config/kopensolaris-gnu.h
     146--- gcc-4.4.0.orig/gcc/config/kopensolaris-gnu.h        2009-01-29 10:48:41.000000000 -0800
     147+++ gcc-4.4.0/gcc/config/kopensolaris-gnu.h     2009-04-21 10:05:38.232013132 -0700
     148@@ -33,5 +33,5 @@
     149 
     150 #ifdef GLIBC_DYNAMIC_LINKER
     151 #undef GLIBC_DYNAMIC_LINKER
     152-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     153+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
     154 #endif
     155diff -Naur gcc-4.4.0.orig/gcc/config/linux.h gcc-4.4.0/gcc/config/linux.h
     156--- gcc-4.4.0.orig/gcc/config/linux.h   2009-04-09 16:23:07.000000000 -0700
     157+++ gcc-4.4.0/gcc/config/linux.h        2009-04-21 10:05:35.793583462 -0700
     158@@ -117,9 +117,9 @@
    149159    GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
    150160    GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
     
    159169   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
    160170 #define LINUX_DYNAMIC_LINKER32 \
    161 diff -Naur gcc-4.3.3.orig/gcc/config/m32r/linux.h gcc-4.3.3/gcc/config/m32r/linux.h
    162 --- gcc-4.3.3.orig/gcc/config/m32r/linux.h      2007-08-02 03:49:31.000000000 -0700
    163 +++ gcc-4.3.3/gcc/config/m32r/linux.h   2009-01-25 00:44:12.389370023 -0800
     171diff -Naur gcc-4.4.0.orig/gcc/config/m32r/linux.h gcc-4.4.0/gcc/config/m32r/linux.h
     172--- gcc-4.4.0.orig/gcc/config/m32r/linux.h      2007-08-02 03:49:31.000000000 -0700
     173+++ gcc-4.4.0/gcc/config/m32r/linux.h   2009-04-21 10:05:29.512193603 -0700
    164174@@ -58,7 +58,7 @@
    165175 
     
    171181 #undef LINK_SPEC
    172182 #if TARGET_LITTLE_ENDIAN
    173 diff -Naur gcc-4.3.3.orig/gcc/config/m68k/linux.h gcc-4.3.3/gcc/config/m68k/linux.h
    174 --- gcc-4.3.3.orig/gcc/config/m68k/linux.h      2007-09-24 14:07:08.000000000 -0700
    175 +++ gcc-4.3.3/gcc/config/m68k/linux.h   2009-01-25 00:44:11.044059784 -0800
     183diff -Naur gcc-4.4.0.orig/gcc/config/m68k/linux.h gcc-4.4.0/gcc/config/m68k/linux.h
     184--- gcc-4.4.0.orig/gcc/config/m68k/linux.h      2007-09-24 14:07:08.000000000 -0700
     185+++ gcc-4.4.0/gcc/config/m68k/linux.h   2009-04-21 10:05:27.799443777 -0700
    176186@@ -84,7 +84,7 @@
    177187 
     
    183193 #undef LINK_SPEC
    184194 #define LINK_SPEC "-m m68kelf %{shared} \
    185 diff -Naur gcc-4.3.3.orig/gcc/config/mips/linux64.h gcc-4.3.3/gcc/config/mips/linux64.h
    186 --- gcc-4.3.3.orig/gcc/config/mips/linux64.h    2007-08-02 03:49:31.000000000 -0700
    187 +++ gcc-4.3.3/gcc/config/mips/linux64.h 2009-01-25 00:44:18.176655119 -0800
    188 @@ -38,10 +38,10 @@
     195diff -Naur gcc-4.4.0.orig/gcc/config/mips/linux64.h gcc-4.4.0/gcc/config/mips/linux64.h
     196--- gcc-4.4.0.orig/gcc/config/mips/linux64.h    2009-02-20 07:20:38.000000000 -0800
     197+++ gcc-4.4.0/gcc/config/mips/linux64.h 2009-04-21 10:05:35.898926387 -0700
     198@@ -35,10 +35,10 @@
    189199 %{!shared: \
    190200   %{profile:-lc_p} %{!profile:-lc}}"
     
    201211   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
    202212 
    203 diff -Naur gcc-4.3.3.orig/gcc/config/mips/linux.h gcc-4.3.3/gcc/config/mips/linux.h
    204 --- gcc-4.3.3.orig/gcc/config/mips/linux.h      2007-10-21 02:20:49.000000000 -0700
    205 +++ gcc-4.3.3/gcc/config/mips/linux.h   2009-01-25 00:44:18.652435256 -0800
     213diff -Naur gcc-4.4.0.orig/gcc/config/mips/linux.h gcc-4.4.0/gcc/config/mips/linux.h
     214--- gcc-4.4.0.orig/gcc/config/mips/linux.h      2009-02-20 07:20:38.000000000 -0800
     215+++ gcc-4.4.0/gcc/config/mips/linux.h   2009-04-21 10:05:36.394414304 -0700
    206216@@ -64,7 +64,7 @@
    207217 #undef MIPS_DEFAULT_GVALUE
     
    213223 /* Borrowed from sparc/linux.h */
    214224 #undef LINK_SPEC
    215 diff -Naur gcc-4.3.3.orig/gcc/config/mn10300/linux.h gcc-4.3.3/gcc/config/mn10300/linux.h
    216 --- gcc-4.3.3.orig/gcc/config/mn10300/linux.h   2007-08-02 03:49:31.000000000 -0700
    217 +++ gcc-4.3.3/gcc/config/mn10300/linux.h        2009-01-25 00:44:19.054386646 -0800
     225diff -Naur gcc-4.4.0.orig/gcc/config/mn10300/linux.h gcc-4.4.0/gcc/config/mn10300/linux.h
     226--- gcc-4.4.0.orig/gcc/config/mn10300/linux.h   2007-08-02 03:49:31.000000000 -0700
     227+++ gcc-4.4.0/gcc/config/mn10300/linux.h        2009-04-21 10:05:36.792364856 -0700
    218228@@ -32,7 +32,7 @@
    219229 #undef  ASM_SPEC
     
    225235 #undef  LINK_SPEC
    226236 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
    227 diff -Naur gcc-4.3.3.orig/gcc/config/pa/pa-linux.h gcc-4.3.3/gcc/config/pa/pa-linux.h
    228 --- gcc-4.3.3.orig/gcc/config/pa/pa-linux.h     2007-08-02 03:49:31.000000000 -0700
    229 +++ gcc-4.3.3/gcc/config/pa/pa-linux.h  2009-01-25 00:44:17.138963542 -0800
     237diff -Naur gcc-4.4.0.orig/gcc/config/pa/pa-linux.h gcc-4.4.0/gcc/config/pa/pa-linux.h
     238--- gcc-4.4.0.orig/gcc/config/pa/pa-linux.h     2007-08-02 03:49:31.000000000 -0700
     239+++ gcc-4.4.0/gcc/config/pa/pa-linux.h  2009-04-21 10:05:34.931355497 -0700
    230240@@ -44,7 +44,7 @@
    231241 /* Define this for shared library support because it isn't in the main
     
    237247 #undef LINK_SPEC
    238248 #define LINK_SPEC "\
    239 diff -Naur gcc-4.3.3.orig/gcc/config/rs6000/linux64.h gcc-4.3.3/gcc/config/rs6000/linux64.h
    240 --- gcc-4.3.3.orig/gcc/config/rs6000/linux64.h  2007-08-02 03:49:31.000000000 -0700
    241 +++ gcc-4.3.3/gcc/config/rs6000/linux64.h       2009-01-25 00:44:08.140163989 -0800
    242 @@ -339,10 +339,10 @@
     249diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/linux64.h gcc-4.4.0/gcc/config/rs6000/linux64.h
     250--- gcc-4.4.0.orig/gcc/config/rs6000/linux64.h  2009-04-09 16:23:07.000000000 -0700
     251+++ gcc-4.4.0/gcc/config/rs6000/linux64.h       2009-04-21 10:05:24.642748987 -0700
     252@@ -342,10 +342,10 @@
    243253 #undef LINK_OS_DEFAULT_SPEC
    244254 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
     
    255265 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    256266 #else
    257 diff -Naur gcc-4.3.3.orig/gcc/config/rs6000/sysv4.h gcc-4.3.3/gcc/config/rs6000/sysv4.h
    258 --- gcc-4.3.3.orig/gcc/config/rs6000/sysv4.h    2007-08-08 12:33:24.000000000 -0700
    259 +++ gcc-4.3.3/gcc/config/rs6000/sysv4.h 2009-01-25 00:44:08.414967174 -0800
    260 @@ -891,8 +891,8 @@
     267diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/sysv4.h gcc-4.4.0/gcc/config/rs6000/sysv4.h
     268--- gcc-4.4.0.orig/gcc/config/rs6000/sysv4.h    2009-04-09 16:23:07.000000000 -0700
     269+++ gcc-4.4.0/gcc/config/rs6000/sysv4.h 2009-04-21 10:05:25.034773572 -0700
     270@@ -901,8 +901,8 @@
    261271 
    262272 #define LINK_START_LINUX_SPEC ""
     
    269279 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    270280 #else
    271 @@ -934,7 +934,7 @@
     281@@ -944,7 +944,7 @@
    272282 
    273283 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
     
    278288 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__   \
    279289 %{!undef:                                                      \
    280 diff -Naur gcc-4.3.3.orig/gcc/config/s390/linux.h gcc-4.3.3/gcc/config/s390/linux.h
    281 --- gcc-4.3.3.orig/gcc/config/s390/linux.h      2007-08-02 03:49:31.000000000 -0700
    282 +++ gcc-4.3.3/gcc/config/s390/linux.h   2009-01-25 00:44:11.774138007 -0800
     290diff -Naur gcc-4.4.0.orig/gcc/config/s390/linux.h gcc-4.4.0/gcc/config/s390/linux.h
     291--- gcc-4.4.0.orig/gcc/config/s390/linux.h      2007-08-02 03:49:31.000000000 -0700
     292+++ gcc-4.4.0/gcc/config/s390/linux.h   2009-04-21 10:05:28.673376171 -0700
    283293@@ -72,8 +72,8 @@
    284294 #define MULTILIB_DEFAULTS { "m31" }
     
    292302 #undef  LINK_SPEC
    293303 #define LINK_SPEC \
    294 diff -Naur gcc-4.3.3.orig/gcc/config/sh/linux.h gcc-4.3.3/gcc/config/sh/linux.h
    295 --- gcc-4.3.3.orig/gcc/config/sh/linux.h        2007-08-02 03:49:31.000000000 -0700
    296 +++ gcc-4.3.3/gcc/config/sh/linux.h     2009-01-25 00:44:16.458105601 -0800
     304diff -Naur gcc-4.4.0.orig/gcc/config/sh/linux.h gcc-4.4.0/gcc/config/sh/linux.h
     305--- gcc-4.4.0.orig/gcc/config/sh/linux.h        2007-08-02 03:49:31.000000000 -0700
     306+++ gcc-4.4.0/gcc/config/sh/linux.h     2009-04-21 10:05:34.264203940 -0700
    297307@@ -47,7 +47,7 @@
    298308 
     
    304314 #undef SUBTARGET_LINK_EMUL_SUFFIX
    305315 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
    306 diff -Naur gcc-4.3.3.orig/gcc/config/sparc/linux64.h gcc-4.3.3/gcc/config/sparc/linux64.h
    307 --- gcc-4.3.3.orig/gcc/config/sparc/linux64.h   2007-10-18 21:29:38.000000000 -0700
    308 +++ gcc-4.3.3/gcc/config/sparc/linux64.h        2009-01-25 00:44:20.108482748 -0800
    309 @@ -144,10 +144,10 @@
     316diff -Naur gcc-4.4.0.orig/gcc/config/sparc/linux64.h gcc-4.4.0/gcc/config/sparc/linux64.h
     317--- gcc-4.4.0.orig/gcc/config/sparc/linux64.h   2009-02-20 07:20:38.000000000 -0800
     318+++ gcc-4.4.0/gcc/config/sparc/linux64.h        2009-04-21 10:05:37.666298087 -0700
     319@@ -109,8 +109,8 @@
    310320 
    311321 /* If ELF is the default format, we should not use /lib/elf.  */
     
    313323-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
    314324-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
    315 -#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    316 -#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
    317325+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
    318326+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
    319 +#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
    320 +#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
    321  #if UCLIBC_DEFAULT
    322  #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    323  #else
    324 @@ -167,7 +167,7 @@
     327 
     328 #ifdef SPARC_BI_ARCH
     329 
     330@@ -121,7 +121,7 @@
    325331   { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },       \
    326332   { "link_arch",        LINK_ARCH_SPEC },
    327333 
    328 -#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
    329 +#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
     334-#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
     335+#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/tools/lib %{shared:-shared} \
    330336   %{!shared: \
    331337     %{!ibcs: \
    332338       %{!static: \
    333 @@ -176,7 +176,7 @@
     339@@ -130,7 +130,7 @@
    334340         %{static:-static}}} \
    335341 "
    336342 
    337 -#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
    338 +#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/tools/lib64 %{shared:-shared} \
     343-#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     344+#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
    339345   %{!shared: \
    340346     %{!ibcs: \
    341347       %{!static: \
    342 @@ -257,7 +257,7 @@
     348@@ -211,7 +211,7 @@
    343349 #else /* !SPARC_BI_ARCH */
    344350 
    345351 #undef LINK_SPEC
    346 -#define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
    347 +#define LINK_SPEC "-m elf64_sparc -Y P,/tools/lib64 %{shared:-shared} \
     352-#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     353+#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
    348354   %{!shared: \
    349355     %{!ibcs: \
    350356       %{!static: \
    351 diff -Naur gcc-4.3.3.orig/gcc/config/sparc/linux.h gcc-4.3.3/gcc/config/sparc/linux.h
    352 --- gcc-4.3.3.orig/gcc/config/sparc/linux.h     2007-08-02 03:49:31.000000000 -0700
    353 +++ gcc-4.3.3/gcc/config/sparc/linux.h  2009-01-25 00:44:20.453014666 -0800
    354 @@ -120,8 +120,8 @@
     357diff -Naur gcc-4.4.0.orig/gcc/config/sparc/linux.h gcc-4.4.0/gcc/config/sparc/linux.h
     358--- gcc-4.4.0.orig/gcc/config/sparc/linux.h     2009-02-20 07:20:38.000000000 -0800
     359+++ gcc-4.4.0/gcc/config/sparc/linux.h  2009-04-21 10:05:37.978417377 -0700
     360@@ -83,10 +83,10 @@
    355361 
    356362 /* If ELF is the default format, we should not use /lib/elf.  */
    357363 
    358364-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
    359 -#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
    360 +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    361 +#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
    362  #if UCLIBC_DEFAULT
    363  #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    364  #else
    365 @@ -132,7 +132,7 @@
    366  
     365+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    367366 
    368367 #undef  LINK_SPEC
     
    372371   %{!shared: \
    373372     %{!ibcs: \
    374 diff -Naur gcc-4.3.3.orig/gcc/config/xtensa/linux.h gcc-4.3.3/gcc/config/xtensa/linux.h
    375 --- gcc-4.3.3.orig/gcc/config/xtensa/linux.h    2008-01-17 17:37:53.000000000 -0800
    376 +++ gcc-4.3.3/gcc/config/xtensa/linux.h 2009-01-25 00:44:10.043282860 -0800
     373diff -Naur gcc-4.4.0.orig/gcc/config/xtensa/linux.h gcc-4.4.0/gcc/config/xtensa/linux.h
     374--- gcc-4.4.0.orig/gcc/config/xtensa/linux.h    2008-01-17 17:37:53.000000000 -0800
     375+++ gcc-4.4.0/gcc/config/xtensa/linux.h 2009-04-21 10:05:26.652405923 -0700
    377376@@ -43,7 +43,7 @@
    378377   %{mlongcalls:--longcalls} \
Note: See TracChangeset for help on using the changeset viewer.