[0804c00] | 1 | Submitted By: Jim Gifford (jim at cross-lfs dot org)
|
---|
| 2 | Date: 01-25-2009
|
---|
| 3 | Initial Package Version: 4.3.3
|
---|
[08c058a] | 4 | Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
|
---|
| 5 | the Pure LFS project.
|
---|
[0804c00] | 6 | Upstream Status: Not Applied
|
---|
| 7 | Description: This patch modifies the location of the dynamic linker for gcc-4.3.3.
|
---|
[08c058a] | 8 |
|
---|
[0804c00] | 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
|
---|
[08c058a] | 12 | @@ -11,7 +11,7 @@
|
---|
| 13 | } while (0)
|
---|
| 14 |
|
---|
| 15 | #undef ELF_DYNAMIC_LINKER
|
---|
| 16 | -#define ELF_DYNAMIC_LINKER "/lib/ld.so"
|
---|
| 17 | +#define ELF_DYNAMIC_LINKER "/tools/lib/ld.so"
|
---|
| 18 |
|
---|
| 19 | #undef STARTFILE_SPEC
|
---|
| 20 | #define STARTFILE_SPEC \
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 24 | @@ -27,8 +27,8 @@
|
---|
| 25 | #define EXTRA_SPECS \
|
---|
[08c058a] | 26 | { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
|
---|
| 27 |
|
---|
| 28 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
---|
| 29 | -#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
---|
| 30 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
|
---|
| 31 | +#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
|
---|
| 32 | #if UCLIBC_DEFAULT
|
---|
| 33 | #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
|
---|
| 34 | #else
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 38 | @@ -61,7 +61,7 @@
|
---|
[08c058a] | 39 | /* Use ld-linux.so.3 so that it will be possible to run "classic"
|
---|
| 40 | GNU/Linux binaries on an EABI system. */
|
---|
[6a043e2] | 41 | #undef GLIBC_DYNAMIC_LINKER
|
---|
[08c058a] | 42 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.3"
|
---|
| 43 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.3"
|
---|
| 44 |
|
---|
| 45 | /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
|
---|
| 46 | use the GNU/Linux version, not the generic BPABI version. */
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 50 | @@ -62,7 +62,7 @@
|
---|
[08c058a] | 51 |
|
---|
| 52 | #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
|
---|
| 53 |
|
---|
| 54 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
---|
| 55 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
|
---|
| 56 |
|
---|
| 57 | #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \
|
---|
| 58 | %{b} \
|
---|
[0804c00] | 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
|
---|
| 62 | @@ -22,7 +22,7 @@
|
---|
| 63 | %{shared:-G -Bdynamic} \
|
---|
| 64 | %{!shared: %{!static: \
|
---|
| 65 | %{rdynamic:-export-dynamic} \
|
---|
| 66 | - %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
---|
| 67 | + %{!dynamic-linker:-dynamic-linker /tools/lib/ld-uClibc.so.0}} \
|
---|
| 68 | %{static}} -init __init -fini __fini"
|
---|
| 69 |
|
---|
| 70 | #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
|
---|
[6a043e2] | 74 | @@ -102,7 +102,7 @@
|
---|
| 75 | #undef CRIS_DEFAULT_CPU_VERSION
|
---|
| 76 | #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
|
---|
[08c058a] | 77 |
|
---|
| 78 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
---|
| 79 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
|
---|
| 80 |
|
---|
| 81 | /* We need an -rpath-link to ld.so.1, and presumably to each directory
|
---|
| 82 | specified with -B. */
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 86 | @@ -35,7 +35,7 @@
|
---|
[08c058a] | 87 | #define ENDFILE_SPEC \
|
---|
| 88 | "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
|
---|
| 89 |
|
---|
| 90 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
---|
| 91 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
|
---|
| 92 |
|
---|
| 93 | #undef LINK_SPEC
|
---|
| 94 | #define LINK_SPEC "\
|
---|
[0804c00] | 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
|
---|
[08c058a] | 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
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 110 | @@ -53,8 +53,8 @@
|
---|
[08c058a] | 111 | When the -shared link option is used a final link is not being
|
---|
| 112 | done. */
|
---|
| 113 |
|
---|
| 114 | -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
|
---|
| 115 | -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
|
---|
| 116 | +#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-linux.so.2"
|
---|
| 117 | +#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-linux-x86-64.so.2"
|
---|
| 118 |
|
---|
[6a043e2] | 119 | #if TARGET_64BIT_DEFAULT
|
---|
| 120 | #define SPEC_32 "m32"
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 124 | @@ -100,7 +100,7 @@
|
---|
[08c058a] | 125 |
|
---|
| 126 | /* These macros may be overridden in k*bsd-gnu.h and i386/k*bsd-gnu.h. */
|
---|
| 127 | #define LINK_EMULATION "elf_i386"
|
---|
| 128 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
---|
| 129 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
|
---|
| 130 |
|
---|
| 131 | #undef SUBTARGET_EXTRA_SPECS
|
---|
| 132 | #define SUBTARGET_EXTRA_SPECS \
|
---|
[0804c00] | 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
|
---|
[08c058a] | 136 | @@ -37,7 +37,7 @@
|
---|
| 137 | /* Define this for shared library support because it isn't in the main
|
---|
| 138 | linux.h file. */
|
---|
| 139 |
|
---|
| 140 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
|
---|
| 141 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-ia64.so.2"
|
---|
| 142 |
|
---|
| 143 | #undef LINK_SPEC
|
---|
| 144 | #define LINK_SPEC "\
|
---|
[0804c00] | 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
|
---|
[08c058a] | 148 | @@ -112,9 +112,9 @@
|
---|
| 149 | GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
|
---|
| 150 | GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
|
---|
| 151 | supporting both 32-bit and 64-bit compilation. */
|
---|
| 152 | -#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
---|
| 153 | -#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
|
---|
| 154 | -#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
|
---|
| 155 | +#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
|
---|
[0804c00] | 156 | +#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-uClibc.so.0"
|
---|
[08c058a] | 157 | +#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
|
---|
| 158 | #define LINUX_DYNAMIC_LINKER \
|
---|
| 159 | CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
|
---|
| 160 | #define LINUX_DYNAMIC_LINKER32 \
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 164 | @@ -58,7 +58,7 @@
|
---|
[08c058a] | 165 |
|
---|
| 166 | /* If ELF is the default format, we should not use /lib/elf. */
|
---|
| 167 |
|
---|
| 168 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
---|
| 169 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
|
---|
| 170 |
|
---|
| 171 | #undef LINK_SPEC
|
---|
| 172 | #if TARGET_LITTLE_ENDIAN
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 176 | @@ -84,7 +84,7 @@
|
---|
[08c058a] | 177 |
|
---|
| 178 | /* If ELF is the default format, we should not use /lib/elf. */
|
---|
| 179 |
|
---|
| 180 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
---|
| 181 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
|
---|
| 182 |
|
---|
[6a043e2] | 183 | #undef LINK_SPEC
|
---|
[08c058a] | 184 | #define LINK_SPEC "-m m68kelf %{shared} \
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 188 | @@ -38,10 +38,10 @@
|
---|
| 189 | %{!shared: \
|
---|
| 190 | %{profile:-lc_p} %{!profile:-lc}}"
|
---|
[08c058a] | 191 |
|
---|
| 192 | -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
|
---|
| 193 | -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
|
---|
| 194 | -#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
|
---|
| 195 | -#define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
|
---|
| 196 | +#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld.so.1"
|
---|
| 197 | +#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld.so.1"
|
---|
| 198 | +#define GLIBC_DYNAMIC_LINKERN32 "/tools/lib64/ld.so.1"
|
---|
| 199 | +#define UCLIBC_DYNAMIC_LINKERN32 "/tools/lib64/ld-uClibc.so.0"
|
---|
| 200 | #define LINUX_DYNAMIC_LINKERN32 \
|
---|
| 201 | CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
|
---|
| 202 |
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 206 | @@ -64,7 +64,7 @@
|
---|
[08c058a] | 207 | #undef MIPS_DEFAULT_GVALUE
|
---|
| 208 | #define MIPS_DEFAULT_GVALUE 0
|
---|
| 209 |
|
---|
| 210 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
---|
| 211 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
|
---|
| 212 |
|
---|
| 213 | /* Borrowed from sparc/linux.h */
|
---|
| 214 | #undef LINK_SPEC
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 218 | @@ -32,7 +32,7 @@
|
---|
[08c058a] | 219 | #undef ASM_SPEC
|
---|
| 220 | #define ASM_SPEC "%{Wa,*:%*}"
|
---|
| 221 |
|
---|
| 222 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
---|
| 223 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
|
---|
| 224 |
|
---|
| 225 | #undef LINK_SPEC
|
---|
| 226 | #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 230 | @@ -44,7 +44,7 @@
|
---|
[08c058a] | 231 | /* Define this for shared library support because it isn't in the main
|
---|
| 232 | linux.h file. */
|
---|
| 233 |
|
---|
| 234 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
---|
| 235 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
|
---|
| 236 |
|
---|
| 237 | #undef LINK_SPEC
|
---|
| 238 | #define LINK_SPEC "\
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 242 | @@ -339,10 +339,10 @@
|
---|
[08c058a] | 243 | #undef LINK_OS_DEFAULT_SPEC
|
---|
| 244 | #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
|
---|
| 245 |
|
---|
| 246 | -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
|
---|
| 247 | -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
|
---|
| 248 | -#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
|
---|
| 249 | -#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
|
---|
| 250 | +#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld.so.1"
|
---|
| 251 | +#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
|
---|
[0804c00] | 252 | +#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-uClibc.so.0"
|
---|
[08c058a] | 253 | +#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
|
---|
| 254 | #if UCLIBC_DEFAULT
|
---|
| 255 | #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
|
---|
| 256 | #else
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 260 | @@ -891,8 +891,8 @@
|
---|
[08c058a] | 261 |
|
---|
| 262 | #define LINK_START_LINUX_SPEC ""
|
---|
| 263 |
|
---|
| 264 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
---|
| 265 | -#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
---|
| 266 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
|
---|
| 267 | +#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
|
---|
| 268 | #if UCLIBC_DEFAULT
|
---|
| 269 | #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
|
---|
| 270 | #else
|
---|
[6a043e2] | 271 | @@ -934,7 +934,7 @@
|
---|
[08c058a] | 272 |
|
---|
| 273 | #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
|
---|
| 274 | %{rdynamic:-export-dynamic} \
|
---|
| 275 | - %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
|
---|
| 276 | + %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
|
---|
| 277 |
|
---|
| 278 | #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__ \
|
---|
| 279 | %{!undef: \
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 283 | @@ -72,8 +72,8 @@
|
---|
[08c058a] | 284 | #define MULTILIB_DEFAULTS { "m31" }
|
---|
| 285 | #endif
|
---|
| 286 |
|
---|
| 287 | -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
|
---|
| 288 | -#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
|
---|
[0804c00] | 289 | +#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld.so.1"
|
---|
[08c058a] | 290 | +#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
|
---|
| 291 |
|
---|
| 292 | #undef LINK_SPEC
|
---|
| 293 | #define LINK_SPEC \
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 297 | @@ -47,7 +47,7 @@
|
---|
[08c058a] | 298 |
|
---|
| 299 | #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
|
---|
| 300 |
|
---|
| 301 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
---|
| 302 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
|
---|
| 303 |
|
---|
| 304 | #undef SUBTARGET_LINK_EMUL_SUFFIX
|
---|
| 305 | #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
|
---|
[0804c00] | 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
|
---|
[08c058a] | 309 | @@ -144,10 +144,10 @@
|
---|
| 310 |
|
---|
| 311 | /* If ELF is the default format, we should not use /lib/elf. */
|
---|
| 312 |
|
---|
| 313 | -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
|
---|
| 314 | -#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"
|
---|
| 317 | +#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-linux.so.2"
|
---|
| 318 | +#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-linux.so.2"
|
---|
[0804c00] | 319 | +#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-uClibc.so.0"
|
---|
[08c058a] | 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 @@
|
---|
| 325 | { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
|
---|
| 326 | { "link_arch", LINK_ARCH_SPEC },
|
---|
| 327 |
|
---|
| 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} \
|
---|
| 330 | %{!shared: \
|
---|
| 331 | %{!ibcs: \
|
---|
| 332 | %{!static: \
|
---|
| 333 | @@ -176,7 +176,7 @@
|
---|
| 334 | %{static:-static}}} \
|
---|
| 335 | "
|
---|
| 336 |
|
---|
| 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} \
|
---|
| 339 | %{!shared: \
|
---|
| 340 | %{!ibcs: \
|
---|
| 341 | %{!static: \
|
---|
| 342 | @@ -257,7 +257,7 @@
|
---|
| 343 | #else /* !SPARC_BI_ARCH */
|
---|
| 344 |
|
---|
| 345 | #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} \
|
---|
| 348 | %{!shared: \
|
---|
| 349 | %{!ibcs: \
|
---|
| 350 | %{!static: \
|
---|
[0804c00] | 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
|
---|
[6a043e2] | 354 | @@ -120,8 +120,8 @@
|
---|
[08c058a] | 355 |
|
---|
| 356 | /* If ELF is the default format, we should not use /lib/elf. */
|
---|
| 357 |
|
---|
| 358 | -#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
|
---|
[6a043e2] | 365 | @@ -132,7 +132,7 @@
|
---|
[08c058a] | 366 |
|
---|
| 367 |
|
---|
| 368 | #undef LINK_SPEC
|
---|
| 369 | -#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
|
---|
| 370 | +#define LINK_SPEC "-m elf32_sparc -Y P,/tools/lib32 %{shared:-shared} \
|
---|
| 371 | %{!mno-relax:%{!r:-relax}} \
|
---|
| 372 | %{!shared: \
|
---|
| 373 | %{!ibcs: \
|
---|
[0804c00] | 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
|
---|
[08c058a] | 377 | @@ -43,7 +43,7 @@
|
---|
| 378 | %{mlongcalls:--longcalls} \
|
---|
| 379 | %{mno-longcalls:--no-longcalls}"
|
---|
| 380 |
|
---|
| 381 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
|
---|
| 382 | +#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
|
---|
| 383 |
|
---|
| 384 | #undef LINK_SPEC
|
---|
| 385 | #define LINK_SPEC \
|
---|