source: patches/gcc-4.4.1-specs-1.patch@ 18eabd2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 18eabd2 was 9dc416eb, checked in by Jim Gifford <clfs@…>, 15 years ago

Updated GCC Patches to 4.4.1

  • Property mode set to 100644
File size: 16.2 KB
RevLine 
[0804c00]1Submitted By: Jim Gifford (jim at cross-lfs dot org)
[9dc416eb]2Date: 07-22-2009
3Initial Package Version: 4.4.1
[08c058a]4Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
5 the Pure LFS project.
[0804c00]6Upstream Status: Not Applied
[9dc416eb]7Description: This patch modifies the location of the dynamic linker for gcc-4.4.1.
[08c058a]8
[9dc416eb]9diff -Naur gcc-4.4.1.orig/gcc/config/alpha/gnu.h gcc-4.4.1/gcc/config/alpha/gnu.h
10--- gcc-4.4.1.orig/gcc/config/alpha/gnu.h 2004-09-07 17:17:19.000000000 -0700
11+++ gcc-4.4.1/gcc/config/alpha/gnu.h 2009-07-22 17:43:39.000000000 -0700
[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 \
[9dc416eb]21diff -Naur gcc-4.4.1.orig/gcc/config/alpha/linux-elf.h gcc-4.4.1/gcc/config/alpha/linux-elf.h
22--- gcc-4.4.1.orig/gcc/config/alpha/linux-elf.h 2007-08-02 03:49:31.000000000 -0700
23+++ gcc-4.4.1/gcc/config/alpha/linux-elf.h 2009-07-22 17:43:39.000000000 -0700
[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
[9dc416eb]35diff -Naur gcc-4.4.1.orig/gcc/config/arm/linux-eabi.h gcc-4.4.1/gcc/config/arm/linux-eabi.h
36--- gcc-4.4.1.orig/gcc/config/arm/linux-eabi.h 2007-11-08 05:44:09.000000000 -0800
37+++ gcc-4.4.1/gcc/config/arm/linux-eabi.h 2009-07-22 17:43:44.000000000 -0700
[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. */
[9dc416eb]47diff -Naur gcc-4.4.1.orig/gcc/config/arm/linux-elf.h gcc-4.4.1/gcc/config/arm/linux-elf.h
48--- gcc-4.4.1.orig/gcc/config/arm/linux-elf.h 2009-02-20 07:20:38.000000000 -0800
49+++ gcc-4.4.1/gcc/config/arm/linux-elf.h 2009-07-22 17:43:44.000000000 -0700
[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} \
[9dc416eb]59diff -Naur gcc-4.4.1.orig/gcc/config/bfin/linux.h gcc-4.4.1/gcc/config/bfin/linux.h
60--- gcc-4.4.1.orig/gcc/config/bfin/linux.h 2008-11-27 01:11:50.000000000 -0800
61+++ gcc-4.4.1/gcc/config/bfin/linux.h 2009-07-22 17:43:35.000000000 -0700
[0804c00]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"
[9dc416eb]71diff -Naur gcc-4.4.1.orig/gcc/config/cris/linux.h gcc-4.4.1/gcc/config/cris/linux.h
72--- gcc-4.4.1.orig/gcc/config/cris/linux.h 2009-03-22 08:15:04.000000000 -0700
73+++ gcc-4.4.1/gcc/config/cris/linux.h 2009-07-22 17:43:43.000000000 -0700
[56a4eb5]74@@ -103,7 +103,7 @@
[6a043e2]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. */
[9dc416eb]83diff -Naur gcc-4.4.1.orig/gcc/config/frv/linux.h gcc-4.4.1/gcc/config/frv/linux.h
84--- gcc-4.4.1.orig/gcc/config/frv/linux.h 2007-08-02 03:49:31.000000000 -0700
85+++ gcc-4.4.1/gcc/config/frv/linux.h 2009-07-22 17:43:35.000000000 -0700
[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 "\
[9dc416eb]95diff -Naur gcc-4.4.1.orig/gcc/config/i386/gnu.h gcc-4.4.1/gcc/config/i386/gnu.h
96--- gcc-4.4.1.orig/gcc/config/i386/gnu.h 2008-11-13 15:28:46.000000000 -0800
97+++ gcc-4.4.1/gcc/config/i386/gnu.h 2009-07-22 17:43:42.000000000 -0700
[56a4eb5]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)");
[9dc416eb]107diff -Naur gcc-4.4.1.orig/gcc/config/i386/linux64.h gcc-4.4.1/gcc/config/i386/linux64.h
108--- gcc-4.4.1.orig/gcc/config/i386/linux64.h 2009-04-09 16:23:07.000000000 -0700
109+++ gcc-4.4.1/gcc/config/i386/linux64.h 2009-07-22 17:43:41.000000000 -0700
[56a4eb5]110@@ -58,8 +58,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/lib/ld-linux.so.2"
117+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux-x86-64.so.2"
118
[56a4eb5]119 #undef ASM_SPEC
120 #define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} \
[9dc416eb]121diff -Naur gcc-4.4.1.orig/gcc/config/i386/linux.h gcc-4.4.1/gcc/config/i386/linux.h
122--- gcc-4.4.1.orig/gcc/config/i386/linux.h 2009-05-21 06:21:30.000000000 -0700
123+++ gcc-4.4.1/gcc/config/i386/linux.h 2009-07-22 17:43:41.000000000 -0700
[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
[56a4eb5]131 #undef ASM_SPEC
132 #define ASM_SPEC \
[9dc416eb]133diff -Naur gcc-4.4.1.orig/gcc/config/ia64/linux.h gcc-4.4.1/gcc/config/ia64/linux.h
134--- gcc-4.4.1.orig/gcc/config/ia64/linux.h 2009-02-12 08:30:53.000000000 -0800
135+++ gcc-4.4.1/gcc/config/ia64/linux.h 2009-07-22 17:43:38.000000000 -0700
[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 "\
[9dc416eb]145diff -Naur gcc-4.4.1.orig/gcc/config/kopensolaris-gnu.h gcc-4.4.1/gcc/config/kopensolaris-gnu.h
146--- gcc-4.4.1.orig/gcc/config/kopensolaris-gnu.h 2009-01-29 10:48:41.000000000 -0800
147+++ gcc-4.4.1/gcc/config/kopensolaris-gnu.h 2009-07-22 17:43:36.000000000 -0700
[56a4eb5]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
[9dc416eb]155diff -Naur gcc-4.4.1.orig/gcc/config/linux.h gcc-4.4.1/gcc/config/linux.h
156--- gcc-4.4.1.orig/gcc/config/linux.h 2009-04-09 16:23:07.000000000 -0700
157+++ gcc-4.4.1/gcc/config/linux.h 2009-07-22 17:43:35.000000000 -0700
[56a4eb5]158@@ -117,9 +117,9 @@
[08c058a]159 GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
160 GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
161 supporting both 32-bit and 64-bit compilation. */
162-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
163-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
164-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
165+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
166+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
167+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
168 #define LINUX_DYNAMIC_LINKER \
169 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
170 #define LINUX_DYNAMIC_LINKER32 \
[9dc416eb]171diff -Naur gcc-4.4.1.orig/gcc/config/m32r/linux.h gcc-4.4.1/gcc/config/m32r/linux.h
172--- gcc-4.4.1.orig/gcc/config/m32r/linux.h 2007-08-02 03:49:31.000000000 -0700
173+++ gcc-4.4.1/gcc/config/m32r/linux.h 2009-07-22 17:43:51.000000000 -0700
[6a043e2]174@@ -58,7 +58,7 @@
[08c058a]175
176 /* If ELF is the default format, we should not use /lib/elf. */
177
178-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
179+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
180
181 #undef LINK_SPEC
182 #if TARGET_LITTLE_ENDIAN
[9dc416eb]183diff -Naur gcc-4.4.1.orig/gcc/config/m68k/linux.h gcc-4.4.1/gcc/config/m68k/linux.h
184--- gcc-4.4.1.orig/gcc/config/m68k/linux.h 2007-09-24 14:07:08.000000000 -0700
185+++ gcc-4.4.1/gcc/config/m68k/linux.h 2009-07-22 17:43:39.000000000 -0700
[6a043e2]186@@ -84,7 +84,7 @@
[08c058a]187
188 /* If ELF is the default format, we should not use /lib/elf. */
189
190-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
191+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
192
[6a043e2]193 #undef LINK_SPEC
[08c058a]194 #define LINK_SPEC "-m m68kelf %{shared} \
[9dc416eb]195diff -Naur gcc-4.4.1.orig/gcc/config/mips/linux64.h gcc-4.4.1/gcc/config/mips/linux64.h
196--- gcc-4.4.1.orig/gcc/config/mips/linux64.h 2009-02-20 07:20:38.000000000 -0800
197+++ gcc-4.4.1/gcc/config/mips/linux64.h 2009-07-22 17:43:40.000000000 -0700
[56a4eb5]198@@ -35,10 +35,10 @@
[6a043e2]199 %{!shared: \
200 %{profile:-lc_p} %{!profile:-lc}}"
[08c058a]201
202-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
203-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
204-#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
205-#define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
206+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
207+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld.so.1"
208+#define GLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld.so.1"
209+#define UCLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld-uClibc.so.0"
210 #define LINUX_DYNAMIC_LINKERN32 \
211 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
212
[9dc416eb]213diff -Naur gcc-4.4.1.orig/gcc/config/mips/linux.h gcc-4.4.1/gcc/config/mips/linux.h
214--- gcc-4.4.1.orig/gcc/config/mips/linux.h 2009-02-20 07:20:38.000000000 -0800
215+++ gcc-4.4.1/gcc/config/mips/linux.h 2009-07-22 17:43:40.000000000 -0700
[6a043e2]216@@ -64,7 +64,7 @@
[08c058a]217 #undef MIPS_DEFAULT_GVALUE
218 #define MIPS_DEFAULT_GVALUE 0
219
220-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
221+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
222
223 /* Borrowed from sparc/linux.h */
224 #undef LINK_SPEC
[9dc416eb]225diff -Naur gcc-4.4.1.orig/gcc/config/mn10300/linux.h gcc-4.4.1/gcc/config/mn10300/linux.h
226--- gcc-4.4.1.orig/gcc/config/mn10300/linux.h 2007-08-02 03:49:31.000000000 -0700
227+++ gcc-4.4.1/gcc/config/mn10300/linux.h 2009-07-22 17:43:43.000000000 -0700
[6a043e2]228@@ -32,7 +32,7 @@
[08c058a]229 #undef ASM_SPEC
230 #define ASM_SPEC "%{Wa,*:%*}"
231
232-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
233+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
234
235 #undef LINK_SPEC
236 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
[9dc416eb]237diff -Naur gcc-4.4.1.orig/gcc/config/pa/pa-linux.h gcc-4.4.1/gcc/config/pa/pa-linux.h
238--- gcc-4.4.1.orig/gcc/config/pa/pa-linux.h 2007-08-02 03:49:31.000000000 -0700
239+++ gcc-4.4.1/gcc/config/pa/pa-linux.h 2009-07-22 17:43:34.000000000 -0700
[6a043e2]240@@ -44,7 +44,7 @@
[08c058a]241 /* Define this for shared library support because it isn't in the main
242 linux.h file. */
243
244-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
245+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
246
247 #undef LINK_SPEC
248 #define LINK_SPEC "\
[9dc416eb]249diff -Naur gcc-4.4.1.orig/gcc/config/rs6000/linux64.h gcc-4.4.1/gcc/config/rs6000/linux64.h
250--- gcc-4.4.1.orig/gcc/config/rs6000/linux64.h 2009-04-09 16:23:07.000000000 -0700
251+++ gcc-4.4.1/gcc/config/rs6000/linux64.h 2009-07-22 17:43:36.000000000 -0700
[56a4eb5]252@@ -342,10 +342,10 @@
[08c058a]253 #undef LINK_OS_DEFAULT_SPEC
254 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
255
256-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
257-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
258-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
259-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
260+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
261+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld64.so.1"
262+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
263+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
264 #if UCLIBC_DEFAULT
265 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
266 #else
[9dc416eb]267diff -Naur gcc-4.4.1.orig/gcc/config/rs6000/sysv4.h gcc-4.4.1/gcc/config/rs6000/sysv4.h
268--- gcc-4.4.1.orig/gcc/config/rs6000/sysv4.h 2009-04-09 16:23:07.000000000 -0700
269+++ gcc-4.4.1/gcc/config/rs6000/sysv4.h 2009-07-22 17:43:37.000000000 -0700
[56a4eb5]270@@ -901,8 +901,8 @@
[08c058a]271
272 #define LINK_START_LINUX_SPEC ""
273
274-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
275-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
276+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
277+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
278 #if UCLIBC_DEFAULT
279 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
280 #else
[56a4eb5]281@@ -944,7 +944,7 @@
[08c058a]282
283 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
284 %{rdynamic:-export-dynamic} \
285- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
286+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
287
288 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__ \
289 %{!undef: \
[9dc416eb]290diff -Naur gcc-4.4.1.orig/gcc/config/s390/linux.h gcc-4.4.1/gcc/config/s390/linux.h
291--- gcc-4.4.1.orig/gcc/config/s390/linux.h 2007-08-02 03:49:31.000000000 -0700
292+++ gcc-4.4.1/gcc/config/s390/linux.h 2009-07-22 17:43:34.000000000 -0700
[6a043e2]293@@ -72,8 +72,8 @@
[08c058a]294 #define MULTILIB_DEFAULTS { "m31" }
295 #endif
296
297-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
298-#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
299+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
300+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
301
302 #undef LINK_SPEC
303 #define LINK_SPEC \
[9dc416eb]304diff -Naur gcc-4.4.1.orig/gcc/config/sh/linux.h gcc-4.4.1/gcc/config/sh/linux.h
305--- gcc-4.4.1.orig/gcc/config/sh/linux.h 2007-08-02 03:49:31.000000000 -0700
306+++ gcc-4.4.1/gcc/config/sh/linux.h 2009-07-22 17:43:45.000000000 -0700
[6a043e2]307@@ -47,7 +47,7 @@
[08c058a]308
309 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
310
311-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
312+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
313
314 #undef SUBTARGET_LINK_EMUL_SUFFIX
315 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
[9dc416eb]316diff -Naur gcc-4.4.1.orig/gcc/config/sparc/linux64.h gcc-4.4.1/gcc/config/sparc/linux64.h
317--- gcc-4.4.1.orig/gcc/config/sparc/linux64.h 2009-02-20 07:20:38.000000000 -0800
318+++ gcc-4.4.1/gcc/config/sparc/linux64.h 2009-07-22 17:43:44.000000000 -0700
[56a4eb5]319@@ -109,8 +109,8 @@
[08c058a]320
321 /* If ELF is the default format, we should not use /lib/elf. */
322
323-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
324-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
325+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
326+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
[56a4eb5]327
328 #ifdef SPARC_BI_ARCH
329
330@@ -121,7 +121,7 @@
[08c058a]331 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
332 { "link_arch", LINK_ARCH_SPEC },
333
[56a4eb5]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} \
[08c058a]336 %{!shared: \
337 %{!ibcs: \
338 %{!static: \
[56a4eb5]339@@ -130,7 +130,7 @@
[08c058a]340 %{static:-static}}} \
341 "
342
[56a4eb5]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} \
[08c058a]345 %{!shared: \
346 %{!ibcs: \
347 %{!static: \
[56a4eb5]348@@ -211,7 +211,7 @@
[08c058a]349 #else /* !SPARC_BI_ARCH */
350
351 #undef LINK_SPEC
[56a4eb5]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} \
[08c058a]354 %{!shared: \
355 %{!ibcs: \
356 %{!static: \
[9dc416eb]357diff -Naur gcc-4.4.1.orig/gcc/config/sparc/linux.h gcc-4.4.1/gcc/config/sparc/linux.h
358--- gcc-4.4.1.orig/gcc/config/sparc/linux.h 2009-02-20 07:20:38.000000000 -0800
359+++ gcc-4.4.1/gcc/config/sparc/linux.h 2009-07-22 17:43:44.000000000 -0700
[56a4eb5]360@@ -83,10 +83,10 @@
[08c058a]361
362 /* If ELF is the default format, we should not use /lib/elf. */
363
364-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
365+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
366
367 #undef LINK_SPEC
368-#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
369+#define LINK_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
370 %{!mno-relax:%{!r:-relax}} \
371 %{!shared: \
372 %{!ibcs: \
[9dc416eb]373diff -Naur gcc-4.4.1.orig/gcc/config/xtensa/linux.h gcc-4.4.1/gcc/config/xtensa/linux.h
374--- gcc-4.4.1.orig/gcc/config/xtensa/linux.h 2008-01-17 17:37:53.000000000 -0800
375+++ gcc-4.4.1/gcc/config/xtensa/linux.h 2009-07-22 17:43:35.000000000 -0700
[08c058a]376@@ -43,7 +43,7 @@
377 %{mlongcalls:--longcalls} \
378 %{mno-longcalls:--no-longcalls}"
379
380-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
381+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
382
383 #undef LINK_SPEC
384 #define LINK_SPEC \
Note: See TracBrowser for help on using the repository browser.