source: patches/gcc-4.1.1-specs-1.patch@ d1fc2f3

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d1fc2f3 was 89d1048, checked in by Jim Gifford <clfs@…>, 19 years ago

Updated to GCC 4.1.1 patches

  • Property mode set to 100644
File size: 14.4 KB
RevLine 
[69cde8d]1Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes)
[e7a7a6f]2Date: 2006-02-17
3Initial Package Version: 4.1.0
4Upstream Status: Not Sent - LFS Specific
[69cde8d]5Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
[e7a7a6f]6 the Pure LFS project.
7 More architectures added by Zack Winkles.
8 Further fine tunings by Greg Schafer.
9 Modified for gcc 3.3.2 by Oliver Brakmann.
10 Rediffed against gcc 3.4.0 by Zack Winkles.
11 Rediffed against gcc 3.4.3 by Jim Gifford.
12 Rediffed against gcc 4.0.0 by Robert Connolly.
13 Rediffed against gcc 4.1.0 by Chris Staub
[69cde8d]14Description: This patch modifies the location of the dynamic linker for
[e7a7a6f]15 the GCC Pass 2 build in LFS Chapter 5.
[69cde8d]16
[e7a7a6f]17diff -Naur gcc-4.1.0.orig/gcc/config/alpha/linux-elf.h gcc-4.1.0/gcc/config/alpha/linux-elf.h
18--- gcc-4.1.0.orig/gcc/config/alpha/linux-elf.h 2005-06-24 21:22:41.000000000 -0400
19+++ gcc-4.1.0/gcc/config/alpha/linux-elf.h 2006-02-28 22:02:20.000000000 -0500
[69cde8d]20@@ -27,7 +27,7 @@
21 #define SUBTARGET_EXTRA_SPECS \
22 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
23
24-#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
25+#define ELF_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
26
27 #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
28 %{O*:-O3} %{!O*:-O1} \
[e7a7a6f]29diff -Naur gcc-4.1.0.orig/gcc/config/arm/linux-elf.h gcc-4.1.0/gcc/config/arm/linux-elf.h
30--- gcc-4.1.0.orig/gcc/config/arm/linux-elf.h 2005-10-09 21:04:31.000000000 -0400
31+++ gcc-4.1.0/gcc/config/arm/linux-elf.h 2006-02-28 22:02:20.000000000 -0500
32@@ -51,7 +51,7 @@
33
34 #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
35
36-#define LINUX_TARGET_INTERPRETER "/lib/ld-linux.so.2"
37+#define LINUX_TARGET_INTERPRETER "/tools/lib/ld-linux.so.2"
38
39 #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \
40 %{b} \
41diff -Naur gcc-4.1.0.orig/gcc/config/frv/linux.h gcc-4.1.0/gcc/config/frv/linux.h
42--- gcc-4.1.0.orig/gcc/config/frv/linux.h 2005-06-24 21:22:41.000000000 -0400
43+++ gcc-4.1.0/gcc/config/frv/linux.h 2006-02-28 22:02:20.000000000 -0500
[69cde8d]44@@ -41,7 +41,7 @@
45 %{mfdpic: -m elf32frvfd -z text} %{shared} %{pie} \
46 %{!shared: %{!static: \
47 %{rdynamic:-export-dynamic} \
48- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
49+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
50 %{static}}"
51
52 /* Support for compile-time default CPU. */
[e7a7a6f]53diff -Naur gcc-4.1.0.orig/gcc/config/i386/gnu.h gcc-4.1.0/gcc/config/i386/gnu.h
54--- gcc-4.1.0.orig/gcc/config/i386/gnu.h 2004-09-07 20:17:19.000000000 -0400
55+++ gcc-4.1.0/gcc/config/i386/gnu.h 2006-02-28 22:02:21.000000000 -0500
[69cde8d]56@@ -27,7 +27,7 @@
57 %{!shared: \
58 %{!static: \
59 %{rdynamic:-export-dynamic} \
60- %{!dynamic-linker:-dynamic-linker /lib/ld.so}} \
61+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so}} \
62 %{static:-static}}"
63
64 #undef STARTFILE_SPEC
[e7a7a6f]65diff -Naur gcc-4.1.0.orig/gcc/config/i386/linux.h gcc-4.1.0/gcc/config/i386/linux.h
66--- gcc-4.1.0.orig/gcc/config/i386/linux.h 2005-08-10 13:53:01.000000000 -0400
67+++ gcc-4.1.0/gcc/config/i386/linux.h 2006-02-28 22:02:21.000000000 -0500
[69cde8d]68@@ -105,7 +105,7 @@
69 /* If ELF is the default format, we should not use /lib/elf. */
70
71 #define LINK_EMULATION "elf_i386"
72-#define DYNAMIC_LINKER "/lib/ld-linux.so.2"
73+#define DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
74
75 #undef SUBTARGET_EXTRA_SPECS
76 #define SUBTARGET_EXTRA_SPECS \
[e7a7a6f]77diff -Naur gcc-4.1.0.orig/gcc/config/i386/linux64.h gcc-4.1.0/gcc/config/i386/linux64.h
78--- gcc-4.1.0.orig/gcc/config/i386/linux64.h 2005-08-10 13:53:01.000000000 -0400
79+++ gcc-4.1.0/gcc/config/i386/linux64.h 2006-02-28 22:02:21.000000000 -0500
[69cde8d]80@@ -60,8 +60,8 @@
81 %{!shared: \
82 %{!static: \
83 %{rdynamic:-export-dynamic} \
84- %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
85- %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
86+ %{m32:%{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
87+ %{!m32:%{!dynamic-linker:-dynamic-linker /tools/lib64/ld-linux-x86-64.so.2}}} \
88 %{static:-static}}"
89
[e7a7a6f]90 /* Similar to standard Linux, but adding -ffast-math support. */
91diff -Naur gcc-4.1.0.orig/gcc/config/ia64/linux.h gcc-4.1.0/gcc/config/ia64/linux.h
92--- gcc-4.1.0.orig/gcc/config/ia64/linux.h 2004-09-07 20:17:19.000000000 -0400
93+++ gcc-4.1.0/gcc/config/ia64/linux.h 2006-02-28 22:02:21.000000000 -0500
[69cde8d]94@@ -43,7 +43,7 @@
95 %{!shared: \
96 %{!static: \
97 %{rdynamic:-export-dynamic} \
98- %{!dynamic-linker:-dynamic-linker /lib/ld-linux-ia64.so.2}} \
99+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux-ia64.so.2}} \
100 %{static:-static}}"
101
102
[e7a7a6f]103diff -Naur gcc-4.1.0.orig/gcc/config/linux.h gcc-4.1.0/gcc/config/linux.h
104--- gcc-4.1.0.orig/gcc/config/linux.h 2005-08-06 09:26:35.000000000 -0400
105+++ gcc-4.1.0/gcc/config/linux.h 2006-02-28 22:02:21.000000000 -0500
[69cde8d]106@@ -104,3 +104,7 @@
107 #define TARGET_C99_FUNCTIONS 1
108
[e7a7a6f]109 #define TARGET_POSIX_IO
[69cde8d]110+
111+/* Remove /usr/include from the end of the include search path. */
112+#undef STANDARD_INCLUDE_DIR
113+#define STANDARD_INCLUDE_DIR 0
[e7a7a6f]114diff -Naur gcc-4.1.0.orig/gcc/config/m32r/linux.h gcc-4.1.0/gcc/config/m32r/linux.h
115--- gcc-4.1.0.orig/gcc/config/m32r/linux.h 2005-07-08 06:00:15.000000000 -0400
116+++ gcc-4.1.0/gcc/config/m32r/linux.h 2006-02-28 22:02:21.000000000 -0500
[69cde8d]117@@ -66,7 +66,7 @@
118 %{!ibcs: \
119 %{!static: \
120 %{rdynamic:-export-dynamic} \
121- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
122+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
123 %{static:-static}}}"
124 #else
125 #define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \
126@@ -74,7 +74,7 @@
127 %{!ibcs: \
128 %{!static: \
129 %{rdynamic:-export-dynamic} \
130- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
131+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
132 %{static:-static}}}"
133 #endif
134
[e7a7a6f]135diff -Naur gcc-4.1.0.orig/gcc/config/m68k/linux.h gcc-4.1.0/gcc/config/m68k/linux.h
136--- gcc-4.1.0.orig/gcc/config/m68k/linux.h 2005-06-24 21:22:41.000000000 -0400
137+++ gcc-4.1.0/gcc/config/m68k/linux.h 2006-02-28 22:02:21.000000000 -0500
138@@ -128,7 +128,7 @@
[69cde8d]139 %{!shared: \
140 %{!static: \
141 %{rdynamic:-export-dynamic} \
142- %{!dynamic-linker*:-dynamic-linker /lib/ld.so.1}} \
143+ %{!dynamic-linker*:-dynamic-linker /tools/lib/ld.so.1}} \
144 %{static}}"
145
146 /* For compatibility with linux/a.out */
[e7a7a6f]147diff -Naur gcc-4.1.0.orig/gcc/config/mips/linux.h gcc-4.1.0/gcc/config/mips/linux.h
148--- gcc-4.1.0.orig/gcc/config/mips/linux.h 2005-06-24 21:22:41.000000000 -0400
149+++ gcc-4.1.0/gcc/config/mips/linux.h 2006-02-28 22:02:21.000000000 -0500
150@@ -112,7 +112,7 @@
[69cde8d]151 %{!ibcs: \
152 %{!static: \
153 %{rdynamic:-export-dynamic} \
154- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
155+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
156 %{static:-static}}}"
157
158 #undef SUBTARGET_ASM_SPEC
[e7a7a6f]159diff -Naur gcc-4.1.0.orig/gcc/config/mips/linux64.h gcc-4.1.0/gcc/config/mips/linux64.h
160--- gcc-4.1.0.orig/gcc/config/mips/linux64.h 2005-06-24 21:22:41.000000000 -0400
161+++ gcc-4.1.0/gcc/config/mips/linux64.h 2006-02-28 22:02:21.000000000 -0500
162@@ -47,9 +47,9 @@
[69cde8d]163 %{!static: \
164 %{rdynamic:-export-dynamic} \
165 %{!dynamic-linker: \
166- %{mabi=n32: -dynamic-linker /lib32/ld.so.1} \
167- %{mabi=64: -dynamic-linker /lib64/ld.so.1} \
168- %{mabi=32: -dynamic-linker /lib/ld.so.1}}} \
169+ %{mabi=n32: -dynamic-linker /tools/lib32/ld.so.1} \
170+ %{mabi=64: -dynamic-linker /tools/lib64/ld.so.1} \
171+ %{mabi=32: -dynamic-linker /tools/lib/ld.so.1}}} \
172 %{static:-static}}} \
173 %{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \
174 %{mabi=64:-melf64%{EB:b}%{EL:l}tsmip} \
[e7a7a6f]175diff -Naur gcc-4.1.0.orig/gcc/config/mn10300/linux.h gcc-4.1.0/gcc/config/mn10300/linux.h
176--- gcc-4.1.0.orig/gcc/config/mn10300/linux.h 2005-06-24 21:22:41.000000000 -0400
177+++ gcc-4.1.0/gcc/config/mn10300/linux.h 2006-02-28 22:02:21.000000000 -0500
[69cde8d]178@@ -37,7 +37,7 @@
179 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
180 %{!static: \
181 %{rdynamic:-export-dynamic} \
182- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
183+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
184 %{static:-static}"
185
[e7a7a6f]186 #undef PROCESSOR_DEFAULT
187diff -Naur gcc-4.1.0.orig/gcc/config/pa/pa-linux.h gcc-4.1.0/gcc/config/pa/pa-linux.h
188--- gcc-4.1.0.orig/gcc/config/pa/pa-linux.h 2005-11-17 22:22:18.000000000 -0500
189+++ gcc-4.1.0/gcc/config/pa/pa-linux.h 2006-02-28 22:02:21.000000000 -0500
190@@ -55,7 +55,7 @@
[69cde8d]191 %{!shared: \
192 %{!static: \
193 %{rdynamic:-export-dynamic} \
194- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
195+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
196 %{static:-static}}"
197
198 /* glibc's profiling functions don't need gcc to allocate counters. */
[e7a7a6f]199diff -Naur gcc-4.1.0.orig/gcc/config/rs6000/linux64.h gcc-4.1.0/gcc/config/rs6000/linux64.h
200--- gcc-4.1.0.orig/gcc/config/rs6000/linux64.h 2006-02-10 15:58:33.000000000 -0500
201+++ gcc-4.1.0/gcc/config/rs6000/linux64.h 2006-02-28 22:02:21.000000000 -0500
202@@ -339,11 +339,11 @@
[69cde8d]203
204 #define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
205 %{rdynamic:-export-dynamic} \
206- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
207+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
208
209 #define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
210 %{rdynamic:-export-dynamic} \
211- %{!dynamic-linker:-dynamic-linker /lib64/ld64.so.1}}}"
212+ %{!dynamic-linker:-dynamic-linker /tools/lib64/ld64.so.1}}}"
213
214 #undef TOC_SECTION_ASM_OP
215 #define TOC_SECTION_ASM_OP \
[e7a7a6f]216diff -Naur gcc-4.1.0.orig/gcc/config/rs6000/sysv4.h gcc-4.1.0/gcc/config/rs6000/sysv4.h
217--- gcc-4.1.0.orig/gcc/config/rs6000/sysv4.h 2006-02-10 15:58:33.000000000 -0500
218+++ gcc-4.1.0/gcc/config/rs6000/sysv4.h 2006-02-28 22:02:21.000000000 -0500
219@@ -1041,7 +1041,7 @@
[69cde8d]220
221 #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
222 %{rdynamic:-export-dynamic} \
223- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
224+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
225
226 #if defined(HAVE_LD_EH_FRAME_HDR)
227 # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
[e7a7a6f]228@@ -1072,7 +1072,7 @@
[69cde8d]229
230 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
231 %{rdynamic:-export-dynamic} \
232- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
233+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
234
235 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__ \
236 %{!undef: \
[e7a7a6f]237diff -Naur gcc-4.1.0.orig/gcc/config/s390/linux.h gcc-4.1.0/gcc/config/s390/linux.h
238--- gcc-4.1.0.orig/gcc/config/s390/linux.h 2006-02-11 03:38:51.000000000 -0500
239+++ gcc-4.1.0/gcc/config/s390/linux.h 2006-02-28 22:02:21.000000000 -0500
[69cde8d]240@@ -86,8 +86,8 @@
241 %{!static: \
242 %{rdynamic:-export-dynamic} \
243 %{!dynamic-linker: \
244- %{m31:-dynamic-linker /lib/ld.so.1} \
245- %{m64:-dynamic-linker /lib/ld64.so.1}}}}"
246+ %{m31:-dynamic-linker /tools/lib/ld.so.1} \
247+ %{m64:-dynamic-linker /tools/lib/ld64.so.1}}}}"
248
249
250 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
[e7a7a6f]251diff -Naur gcc-4.1.0.orig/gcc/config/sh/linux.h gcc-4.1.0/gcc/config/sh/linux.h
252--- gcc-4.1.0.orig/gcc/config/sh/linux.h 2005-06-24 21:22:41.000000000 -0400
253+++ gcc-4.1.0/gcc/config/sh/linux.h 2006-02-28 22:02:21.000000000 -0500
254@@ -60,7 +60,7 @@
[69cde8d]255 "%{shared:-shared} \
256 %{!static: \
257 %{rdynamic:-export-dynamic} \
258- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
259+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
260 %{static:-static}"
261
[e7a7a6f]262 /* Output assembler code to STREAM to call the profiler. */
263diff -Naur gcc-4.1.0.orig/gcc/config/sparc/linux.h gcc-4.1.0/gcc/config/sparc/linux.h
264--- gcc-4.1.0.orig/gcc/config/sparc/linux.h 2006-02-11 03:38:51.000000000 -0500
265+++ gcc-4.1.0/gcc/config/sparc/linux.h 2006-02-28 22:02:21.000000000 -0500
266@@ -126,13 +126,13 @@
[69cde8d]267 /* If ELF is the default format, we should not use /lib/elf. */
268
269 #undef LINK_SPEC
270-#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
271+#define LINK_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
272 %{!mno-relax:%{!r:-relax}} \
273 %{!shared: \
274 %{!ibcs: \
275 %{!static: \
276 %{rdynamic:-export-dynamic} \
277- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
278+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
279 %{static:-static}}}"
280
281 /* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
[e7a7a6f]282diff -Naur gcc-4.1.0.orig/gcc/config/sparc/linux64.h gcc-4.1.0/gcc/config/sparc/linux64.h
283--- gcc-4.1.0.orig/gcc/config/sparc/linux64.h 2006-02-11 03:38:51.000000000 -0500
284+++ gcc-4.1.0/gcc/config/sparc/linux64.h 2006-02-28 22:02:21.000000000 -0500
285@@ -162,21 +162,21 @@
[69cde8d]286 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
287 { "link_arch", LINK_ARCH_SPEC },
288
289-#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
290+#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
291 %{!shared: \
292 %{!ibcs: \
293 %{!static: \
294 %{rdynamic:-export-dynamic} \
295- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
296+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
297 %{static:-static}}} \
298 "
299
300-#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
301+#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/tools/lib64 %{shared:-shared} \
302 %{!shared: \
303 %{!ibcs: \
304 %{!static: \
305 %{rdynamic:-export-dynamic} \
306- %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
307+ %{!dynamic-linker:-dynamic-linker /tools/lib64/ld-linux.so.2}} \
308 %{static:-static}}} \
309 "
310
[e7a7a6f]311@@ -252,12 +252,12 @@
[69cde8d]312 #else /* !SPARC_BI_ARCH */
313
314 #undef LINK_SPEC
315-#define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
316+#define LINK_SPEC "-m elf64_sparc -Y P,/tools/lib64 %{shared:-shared} \
317 %{!shared: \
318 %{!ibcs: \
319 %{!static: \
320 %{rdynamic:-export-dynamic} \
321- %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
322+ %{!dynamic-linker:-dynamic-linker /tools/lib64/ld-linux.so.2}} \
323 %{static:-static}}} \
324 %{mlittle-endian:-EL} \
325 %{!mno-relax:%{!r:-relax}} \
[e7a7a6f]326diff -Naur gcc-4.1.0.orig/gcc/config/xtensa/linux.h gcc-4.1.0/gcc/config/xtensa/linux.h
327--- gcc-4.1.0.orig/gcc/config/xtensa/linux.h 2005-06-24 21:22:41.000000000 -0400
328+++ gcc-4.1.0/gcc/config/xtensa/linux.h 2006-02-28 22:02:21.000000000 -0500
[69cde8d]329@@ -50,7 +50,7 @@
330 %{!ibcs: \
331 %{!static: \
332 %{rdynamic:-export-dynamic} \
333- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
334+ %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
335 %{static:-static}}}"
336
337 #undef LOCAL_LABEL_PREFIX
Note: See TracBrowser for help on using the repository browser.