source: patches/gcc-4.5.2-specs-1.patch@ eef46e9

Last change on this file since eef46e9 was 670bf2c, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Updated GCC to 4.5.2.

  • Property mode set to 100644
File size: 18.6 KB
RevLine 
[c0595573]1Submitted By: Joe Ciccone <jciccone@gmail.com>
[670bf2c]2Date: 01-08-2011
[c0595573]3Initial Package Version: 3.4.6
[9722468]4Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
5 the Pure LFS project.
[c0595573]6Upstream Status: Not Applied - CLFS Specific
7Description: The specs patch changes the location of the dynamic linker as
8 well as the link spec to /tools/lib{,32,64}.
[9722468]9
[670bf2c]10 Rediffed Against 4.5.2 By Joe Ciccone <jciccone@gmail.com>
11
12diff -Naur gcc-4.5.2.orig/gcc/config/alpha/gnu.h gcc-4.5.2/gcc/config/alpha/gnu.h
13--- gcc-4.5.2.orig/gcc/config/alpha/gnu.h 2009-04-21 15:03:23.000000000 -0400
14+++ gcc-4.5.2/gcc/config/alpha/gnu.h 2011-01-08 13:32:34.482662693 -0500
[c0595573]15@@ -34,7 +34,7 @@
[9722468]16 } while (0)
17
18 #undef ELF_DYNAMIC_LINKER
19-#define ELF_DYNAMIC_LINKER "/lib/ld.so"
20+#define ELF_DYNAMIC_LINKER "/tools/lib/ld.so"
21
22 #undef STARTFILE_SPEC
23 #define STARTFILE_SPEC \
[670bf2c]24diff -Naur gcc-4.5.2.orig/gcc/config/alpha/linux-elf.h gcc-4.5.2/gcc/config/alpha/linux-elf.h
25--- gcc-4.5.2.orig/gcc/config/alpha/linux-elf.h 2007-08-02 06:49:31.000000000 -0400
26+++ gcc-4.5.2/gcc/config/alpha/linux-elf.h 2011-01-08 13:32:34.486656575 -0500
[9722468]27@@ -27,8 +27,8 @@
28 #define EXTRA_SPECS \
29 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
30
31-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
32-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
33+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
34+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
35 #if UCLIBC_DEFAULT
36 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
37 #else
[670bf2c]38diff -Naur gcc-4.5.2.orig/gcc/config/arm/linux-eabi.h gcc-4.5.2/gcc/config/arm/linux-eabi.h
39--- gcc-4.5.2.orig/gcc/config/arm/linux-eabi.h 2009-10-30 16:03:09.000000000 -0400
40+++ gcc-4.5.2/gcc/config/arm/linux-eabi.h 2011-01-08 13:32:34.486656575 -0500
[9722468]41@@ -61,7 +61,7 @@
42 /* Use ld-linux.so.3 so that it will be possible to run "classic"
43 GNU/Linux binaries on an EABI system. */
44 #undef GLIBC_DYNAMIC_LINKER
45-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.3"
46+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.3"
47
48 /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
49 use the GNU/Linux version, not the generic BPABI version. */
[670bf2c]50diff -Naur gcc-4.5.2.orig/gcc/config/arm/linux-elf.h gcc-4.5.2/gcc/config/arm/linux-elf.h
51--- gcc-4.5.2.orig/gcc/config/arm/linux-elf.h 2009-11-05 09:47:45.000000000 -0500
52+++ gcc-4.5.2/gcc/config/arm/linux-elf.h 2011-01-08 13:32:34.486656575 -0500
[9722468]53@@ -62,7 +62,7 @@
54
55 #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
56
57-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
58+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
59
60 #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \
61 %{b} \
[670bf2c]62diff -Naur gcc-4.5.2.orig/gcc/config/bfin/linux.h gcc-4.5.2/gcc/config/bfin/linux.h
63--- gcc-4.5.2.orig/gcc/config/bfin/linux.h 2009-09-03 11:37:28.000000000 -0400
64+++ gcc-4.5.2/gcc/config/bfin/linux.h 2011-01-08 13:32:34.486656575 -0500
[c0595573]65@@ -45,7 +45,7 @@
[9722468]66 %{shared:-G -Bdynamic} \
67 %{!shared: %{!static: \
68 %{rdynamic:-export-dynamic} \
69- %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
70+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-uClibc.so.0}} \
71 %{static}} -init __init -fini __fini"
72
73 #define MD_UNWIND_SUPPORT "config/bfin/linux-unwind.h"
[670bf2c]74diff -Naur gcc-4.5.2.orig/gcc/config/cris/linux.h gcc-4.5.2/gcc/config/cris/linux.h
75--- gcc-4.5.2.orig/gcc/config/cris/linux.h 2009-03-22 11:15:04.000000000 -0400
76+++ gcc-4.5.2/gcc/config/cris/linux.h 2011-01-08 13:32:34.486656575 -0500
[9722468]77@@ -103,7 +103,7 @@
78 #undef CRIS_DEFAULT_CPU_VERSION
79 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
80
81-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
82+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
83
84 /* We need an -rpath-link to ld.so.1, and presumably to each directory
85 specified with -B. */
[670bf2c]86diff -Naur gcc-4.5.2.orig/gcc/config/freebsd-spec.h gcc-4.5.2/gcc/config/freebsd-spec.h
87--- gcc-4.5.2.orig/gcc/config/freebsd-spec.h 2009-09-22 12:28:26.000000000 -0400
88+++ gcc-4.5.2/gcc/config/freebsd-spec.h 2011-01-08 13:32:34.486656575 -0500
[c0595573]89@@ -146,7 +146,7 @@
90 #if FBSD_MAJOR < 6
91 #define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
92 #else
93-#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
94+#define FBSD_DYNAMIC_LINKER "/tools/libexec/ld-elf.so.1"
95 #endif
96
97 #if defined(HAVE_LD_EH_FRAME_HDR)
[670bf2c]98diff -Naur gcc-4.5.2.orig/gcc/config/frv/linux.h gcc-4.5.2/gcc/config/frv/linux.h
99--- gcc-4.5.2.orig/gcc/config/frv/linux.h 2007-08-02 06:49:31.000000000 -0400
100+++ gcc-4.5.2/gcc/config/frv/linux.h 2011-01-08 13:32:34.486656575 -0500
[9722468]101@@ -35,7 +35,7 @@
102 #define ENDFILE_SPEC \
103 "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
104
105-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
106+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
107
108 #undef LINK_SPEC
109 #define LINK_SPEC "\
[670bf2c]110diff -Naur gcc-4.5.2.orig/gcc/config/i386/gnu.h gcc-4.5.2/gcc/config/i386/gnu.h
111--- gcc-4.5.2.orig/gcc/config/i386/gnu.h 2008-11-13 18:28:46.000000000 -0500
112+++ gcc-4.5.2/gcc/config/i386/gnu.h 2011-01-08 13:32:34.486656575 -0500
[9722468]113@@ -21,7 +21,7 @@
114 */
115
116 #undef GLIBC_DYNAMIC_LINKER
117-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so"
118+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so"
119
120 #undef TARGET_VERSION
121 #define TARGET_VERSION fprintf (stderr, " (i386 GNU)");
[670bf2c]122diff -Naur gcc-4.5.2.orig/gcc/config/i386/linux.h gcc-4.5.2/gcc/config/i386/linux.h
123--- gcc-4.5.2.orig/gcc/config/i386/linux.h 2010-03-24 16:44:48.000000000 -0400
124+++ gcc-4.5.2/gcc/config/i386/linux.h 2011-01-08 13:32:34.486656575 -0500
[9722468]125@@ -100,7 +100,7 @@
126
127 /* These macros may be overridden in k*bsd-gnu.h and i386/k*bsd-gnu.h. */
128 #define LINK_EMULATION "elf_i386"
129-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
130+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
131
132 #undef ASM_SPEC
133 #define ASM_SPEC \
[670bf2c]134diff -Naur gcc-4.5.2.orig/gcc/config/i386/linux64.h gcc-4.5.2/gcc/config/i386/linux64.h
135--- gcc-4.5.2.orig/gcc/config/i386/linux64.h 2010-03-24 16:44:48.000000000 -0400
136+++ gcc-4.5.2/gcc/config/i386/linux64.h 2011-01-08 13:32:34.486656575 -0500
[c0595573]137@@ -58,8 +58,8 @@
138 When the -shared link option is used a final link is not being
139 done. */
140
141-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
142-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
143+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
144+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux-x86-64.so.2"
145
146 #if TARGET_64BIT_DEFAULT
147 #define SPEC_32 "m32"
[670bf2c]148diff -Naur gcc-4.5.2.orig/gcc/config/ia64/linux.h gcc-4.5.2/gcc/config/ia64/linux.h
149--- gcc-4.5.2.orig/gcc/config/ia64/linux.h 2009-04-21 15:03:23.000000000 -0400
150+++ gcc-4.5.2/gcc/config/ia64/linux.h 2011-01-08 13:32:34.486656575 -0500
[c0595573]151@@ -61,7 +61,7 @@
[9722468]152 /* Define this for shared library support because it isn't in the main
153 linux.h file. */
154
155-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
156+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-ia64.so.2"
157
158 #undef LINK_SPEC
159 #define LINK_SPEC "\
[670bf2c]160diff -Naur gcc-4.5.2.orig/gcc/config/kfreebsd-gnu.h gcc-4.5.2/gcc/config/kfreebsd-gnu.h
161--- gcc-4.5.2.orig/gcc/config/kfreebsd-gnu.h 2007-08-02 06:49:31.000000000 -0400
162+++ gcc-4.5.2/gcc/config/kfreebsd-gnu.h 2011-01-08 13:32:34.486656575 -0500
[c0595573]163@@ -33,5 +33,5 @@
164
165 #ifdef GLIBC_DYNAMIC_LINKER
166 #undef GLIBC_DYNAMIC_LINKER
167-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
168+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
169 #endif
[670bf2c]170diff -Naur gcc-4.5.2.orig/gcc/config/knetbsd-gnu.h gcc-4.5.2/gcc/config/knetbsd-gnu.h
171--- gcc-4.5.2.orig/gcc/config/knetbsd-gnu.h 2007-08-02 06:49:31.000000000 -0400
172+++ gcc-4.5.2/gcc/config/knetbsd-gnu.h 2011-01-08 13:32:34.486656575 -0500
[c0595573]173@@ -34,5 +34,5 @@
174
175 #ifdef GLIBC_DYNAMIC_LINKER
176 #undef GLIBC_DYNAMIC_LINKER
177-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
178+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
179 #endif
[670bf2c]180diff -Naur gcc-4.5.2.orig/gcc/config/kopensolaris-gnu.h gcc-4.5.2/gcc/config/kopensolaris-gnu.h
181--- gcc-4.5.2.orig/gcc/config/kopensolaris-gnu.h 2009-01-29 13:48:41.000000000 -0500
182+++ gcc-4.5.2/gcc/config/kopensolaris-gnu.h 2011-01-08 13:32:34.486656575 -0500
[9722468]183@@ -33,5 +33,5 @@
184
185 #ifdef GLIBC_DYNAMIC_LINKER
186 #undef GLIBC_DYNAMIC_LINKER
187-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
188+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
189 #endif
[670bf2c]190diff -Naur gcc-4.5.2.orig/gcc/config/linux.h gcc-4.5.2/gcc/config/linux.h
191--- gcc-4.5.2.orig/gcc/config/linux.h 2009-04-09 11:00:19.000000000 -0400
192+++ gcc-4.5.2/gcc/config/linux.h 2011-01-08 13:32:34.486656575 -0500
[9722468]193@@ -117,9 +117,9 @@
194 GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
195 GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
196 supporting both 32-bit and 64-bit compilation. */
197-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
198-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
199-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
200+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
201+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
202+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
203 #define LINUX_DYNAMIC_LINKER \
204 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
205 #define LINUX_DYNAMIC_LINKER32 \
[670bf2c]206diff -Naur gcc-4.5.2.orig/gcc/config/lm32/uclinux-elf.h gcc-4.5.2/gcc/config/lm32/uclinux-elf.h
207--- gcc-4.5.2.orig/gcc/config/lm32/uclinux-elf.h 2009-11-11 11:43:06.000000000 -0500
208+++ gcc-4.5.2/gcc/config/lm32/uclinux-elf.h 2011-01-08 13:32:34.486656575 -0500
[c0595573]209@@ -73,7 +73,7 @@
210 %{shared:-shared} \
211 %{symbolic:-Bsymbolic} \
212 %{rdynamic:-export-dynamic} \
213- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}"
214+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}"
215
216 #define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
217
[670bf2c]218diff -Naur gcc-4.5.2.orig/gcc/config/m32r/linux.h gcc-4.5.2/gcc/config/m32r/linux.h
219--- gcc-4.5.2.orig/gcc/config/m32r/linux.h 2007-08-02 06:49:31.000000000 -0400
220+++ gcc-4.5.2/gcc/config/m32r/linux.h 2011-01-08 13:32:34.486656575 -0500
[9722468]221@@ -58,7 +58,7 @@
222
223 /* If ELF is the default format, we should not use /lib/elf. */
224
225-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
226+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
227
228 #undef LINK_SPEC
229 #if TARGET_LITTLE_ENDIAN
[670bf2c]230diff -Naur gcc-4.5.2.orig/gcc/config/m68k/linux.h gcc-4.5.2/gcc/config/m68k/linux.h
231--- gcc-4.5.2.orig/gcc/config/m68k/linux.h 2009-12-11 10:32:08.000000000 -0500
232+++ gcc-4.5.2/gcc/config/m68k/linux.h 2011-01-08 13:32:34.486656575 -0500
[9722468]233@@ -84,7 +84,7 @@
234
235 /* If ELF is the default format, we should not use /lib/elf. */
236
237-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
238+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
239
240 #undef LINK_SPEC
241 #define LINK_SPEC "-m m68kelf %{shared} \
[670bf2c]242diff -Naur gcc-4.5.2.orig/gcc/config/mips/linux.h gcc-4.5.2/gcc/config/mips/linux.h
243--- gcc-4.5.2.orig/gcc/config/mips/linux.h 2009-02-20 10:20:38.000000000 -0500
244+++ gcc-4.5.2/gcc/config/mips/linux.h 2011-01-08 13:32:34.486656575 -0500
[c0595573]245@@ -64,7 +64,7 @@
246 #undef MIPS_DEFAULT_GVALUE
247 #define MIPS_DEFAULT_GVALUE 0
248
249-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
250+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
251
252 /* Borrowed from sparc/linux.h */
253 #undef LINK_SPEC
[670bf2c]254diff -Naur gcc-4.5.2.orig/gcc/config/mips/linux64.h gcc-4.5.2/gcc/config/mips/linux64.h
255--- gcc-4.5.2.orig/gcc/config/mips/linux64.h 2009-02-20 10:20:38.000000000 -0500
256+++ gcc-4.5.2/gcc/config/mips/linux64.h 2011-01-08 13:32:34.490657437 -0500
[9722468]257@@ -35,10 +35,10 @@
258 %{!shared: \
259 %{profile:-lc_p} %{!profile:-lc}}"
260
261-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
262-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
263-#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
264-#define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
265+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
266+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld.so.1"
267+#define GLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld.so.1"
268+#define UCLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld-uClibc.so.0"
269 #define LINUX_DYNAMIC_LINKERN32 \
270 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
271
[670bf2c]272diff -Naur gcc-4.5.2.orig/gcc/config/mn10300/linux.h gcc-4.5.2/gcc/config/mn10300/linux.h
273--- gcc-4.5.2.orig/gcc/config/mn10300/linux.h 2007-08-02 06:49:31.000000000 -0400
274+++ gcc-4.5.2/gcc/config/mn10300/linux.h 2011-01-08 13:32:34.490657437 -0500
[9722468]275@@ -32,7 +32,7 @@
276 #undef ASM_SPEC
277 #define ASM_SPEC "%{Wa,*:%*}"
278
279-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
280+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
281
282 #undef LINK_SPEC
283 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
[670bf2c]284diff -Naur gcc-4.5.2.orig/gcc/config/pa/pa-linux.h gcc-4.5.2/gcc/config/pa/pa-linux.h
285--- gcc-4.5.2.orig/gcc/config/pa/pa-linux.h 2009-12-04 02:47:51.000000000 -0500
286+++ gcc-4.5.2/gcc/config/pa/pa-linux.h 2011-01-08 13:32:34.490657437 -0500
[c0595573]287@@ -38,7 +38,7 @@
[9722468]288 /* Define this for shared library support because it isn't in the main
289 linux.h file. */
290
291-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
292+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
293
294 #undef LINK_SPEC
295 #define LINK_SPEC "\
[670bf2c]296diff -Naur gcc-4.5.2.orig/gcc/config/rs6000/linux64.h gcc-4.5.2/gcc/config/rs6000/linux64.h
297--- gcc-4.5.2.orig/gcc/config/rs6000/linux64.h 2010-11-17 01:09:53.000000000 -0500
298+++ gcc-4.5.2/gcc/config/rs6000/linux64.h 2011-01-08 13:32:34.490657437 -0500
299@@ -340,10 +340,10 @@
[9722468]300 #undef LINK_OS_DEFAULT_SPEC
301 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
302
303-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
304-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
305-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
306-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
307+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
308+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld64.so.1"
309+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
310+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
311 #if UCLIBC_DEFAULT
312 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
313 #else
[670bf2c]314diff -Naur gcc-4.5.2.orig/gcc/config/rs6000/sysv4.h gcc-4.5.2/gcc/config/rs6000/sysv4.h
315--- gcc-4.5.2.orig/gcc/config/rs6000/sysv4.h 2010-11-03 09:55:26.000000000 -0400
316+++ gcc-4.5.2/gcc/config/rs6000/sysv4.h 2011-01-08 13:32:34.490657437 -0500
317@@ -899,8 +899,8 @@
[9722468]318
319 #define LINK_START_LINUX_SPEC ""
320
321-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
322-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
323+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
324+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
325 #if UCLIBC_DEFAULT
326 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
327 #else
[670bf2c]328@@ -942,7 +942,7 @@
[9722468]329
330 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
331 %{rdynamic:-export-dynamic} \
332- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
333+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
334
335 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__ \
336 %{!undef: \
[670bf2c]337diff -Naur gcc-4.5.2.orig/gcc/config/s390/linux.h gcc-4.5.2/gcc/config/s390/linux.h
338--- gcc-4.5.2.orig/gcc/config/s390/linux.h 2007-08-02 06:49:31.000000000 -0400
339+++ gcc-4.5.2/gcc/config/s390/linux.h 2011-01-08 13:32:34.490657437 -0500
[9722468]340@@ -72,8 +72,8 @@
341 #define MULTILIB_DEFAULTS { "m31" }
342 #endif
343
344-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
345-#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
346+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
347+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
348
349 #undef LINK_SPEC
350 #define LINK_SPEC \
[670bf2c]351diff -Naur gcc-4.5.2.orig/gcc/config/sh/linux.h gcc-4.5.2/gcc/config/sh/linux.h
352--- gcc-4.5.2.orig/gcc/config/sh/linux.h 2007-08-02 06:49:31.000000000 -0400
353+++ gcc-4.5.2/gcc/config/sh/linux.h 2011-01-08 13:32:34.490657437 -0500
[9722468]354@@ -47,7 +47,7 @@
355
356 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
357
358-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
359+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
360
361 #undef SUBTARGET_LINK_EMUL_SUFFIX
362 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
[670bf2c]363diff -Naur gcc-4.5.2.orig/gcc/config/sparc/linux.h gcc-4.5.2/gcc/config/sparc/linux.h
364--- gcc-4.5.2.orig/gcc/config/sparc/linux.h 2010-09-22 17:15:37.000000000 -0400
365+++ gcc-4.5.2/gcc/config/sparc/linux.h 2011-01-08 13:32:34.490657437 -0500
[c0595573]366@@ -83,10 +83,10 @@
367
368 /* If ELF is the default format, we should not use /lib/elf. */
369
370-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
371+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
372
373 #undef LINK_SPEC
374-#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
375+#define LINK_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
376 %{!mno-relax:%{!r:-relax}} \
377 %{!shared: \
378 %{!ibcs: \
[670bf2c]379diff -Naur gcc-4.5.2.orig/gcc/config/sparc/linux64.h gcc-4.5.2/gcc/config/sparc/linux64.h
380--- gcc-4.5.2.orig/gcc/config/sparc/linux64.h 2010-09-22 17:15:37.000000000 -0400
381+++ gcc-4.5.2/gcc/config/sparc/linux64.h 2011-01-08 13:32:34.490657437 -0500
[9722468]382@@ -109,8 +109,8 @@
383
384 /* If ELF is the default format, we should not use /lib/elf. */
385
386-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
387-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
388+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
389+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
390
391 #ifdef SPARC_BI_ARCH
392
393@@ -121,7 +121,7 @@
394 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
395 { "link_arch", LINK_ARCH_SPEC },
396
397-#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
398+#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/tools/lib %{shared:-shared} \
399 %{!shared: \
400 %{!ibcs: \
401 %{!static: \
402@@ -130,7 +130,7 @@
403 %{static:-static}}} \
404 "
405
406-#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
407+#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
408 %{!shared: \
409 %{!ibcs: \
410 %{!static: \
411@@ -211,7 +211,7 @@
412 #else /* !SPARC_BI_ARCH */
413
414 #undef LINK_SPEC
415-#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
416+#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
417 %{!shared: \
418 %{!ibcs: \
419 %{!static: \
[670bf2c]420diff -Naur gcc-4.5.2.orig/gcc/config/vax/linux.h gcc-4.5.2/gcc/config/vax/linux.h
421--- gcc-4.5.2.orig/gcc/config/vax/linux.h 2009-11-03 19:07:24.000000000 -0500
422+++ gcc-4.5.2/gcc/config/vax/linux.h 2011-01-08 13:32:34.494657459 -0500
[c0595573]423@@ -44,5 +44,5 @@
[9722468]424 %{!shared: \
[c0595573]425 %{!static: \
426 %{rdynamic:-export-dynamic} \
427- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
428+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
429 %{static:-static}}"
[670bf2c]430diff -Naur gcc-4.5.2.orig/gcc/config/xtensa/linux.h gcc-4.5.2/gcc/config/xtensa/linux.h
431--- gcc-4.5.2.orig/gcc/config/xtensa/linux.h 2008-01-17 20:37:53.000000000 -0500
432+++ gcc-4.5.2/gcc/config/xtensa/linux.h 2011-01-08 13:32:34.494657459 -0500
[9722468]433@@ -43,7 +43,7 @@
434 %{mlongcalls:--longcalls} \
435 %{mno-longcalls:--no-longcalls}"
436
437-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
438+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
439
440 #undef LINK_SPEC
441 #define LINK_SPEC \
Note: See TracBrowser for help on using the repository browser.