source: patches/gcc-4.8.3-specs-1.patch@ d38577a

clfs-3.0.0-systemd systemd
Last change on this file since d38577a was 390c3ab, checked in by Chris Staub <chris@…>, 11 years ago

Added patches for GCC 4.8.3

  • Property mode set to 100644
File size: 19.6 KB
RevLine 
[390c3ab]1Submitted By: William Harrington <kb0iic at cross-lfs dot org>
2Date: 05-31-2014
3Initial Package Version: 4.8.3
4Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
5 the Pure LFS project.
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}.
9
10diff -Naur gcc-4.8.3.orig/gcc/config/aarch64/aarch64-linux.h gcc-4.8.3/gcc/config/aarch64/aarch64-linux.h
11--- gcc-4.8.3.orig/gcc/config/aarch64/aarch64-linux.h 2013-08-13 13:22:18.000000000 +0000
12+++ gcc-4.8.3/gcc/config/aarch64/aarch64-linux.h 2014-06-01 05:02:45.010471852 +0000
13@@ -21,7 +21,7 @@
14 #ifndef GCC_AARCH64_LINUX_H
15 #define GCC_AARCH64_LINUX_H
16
17-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64.so.1"
18+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-aarch64.so.1"
19
20 #define CPP_SPEC "%{pthread:-D_REENTRANT}"
21
22diff -Naur gcc-4.8.3.orig/gcc/config/alpha/linux-elf.h gcc-4.8.3/gcc/config/alpha/linux-elf.h
23--- gcc-4.8.3.orig/gcc/config/alpha/linux-elf.h 2013-01-10 20:38:27.000000000 +0000
24+++ gcc-4.8.3/gcc/config/alpha/linux-elf.h 2014-06-01 05:02:45.013805272 +0000
25@@ -23,8 +23,8 @@
26 #define EXTRA_SPECS \
27 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
28
29-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
30-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
31+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
32+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
33 #if DEFAULT_LIBC == LIBC_UCLIBC
34 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
35 #elif DEFAULT_LIBC == LIBC_GLIBC
36diff -Naur gcc-4.8.3.orig/gcc/config/arm/linux-eabi.h gcc-4.8.3/gcc/config/arm/linux-eabi.h
37--- gcc-4.8.3.orig/gcc/config/arm/linux-eabi.h 2013-01-10 20:38:27.000000000 +0000
38+++ gcc-4.8.3/gcc/config/arm/linux-eabi.h 2014-06-01 05:02:45.013805272 +0000
39@@ -68,8 +68,8 @@
40 GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI. */
41
42 #undef GLIBC_DYNAMIC_LINKER
43-#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3"
44-#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3"
45+#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/tools/lib/ld-linux.so.3"
46+#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/tools/lib/ld-linux-armhf.so.3"
47 #define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT
48
49 #define GLIBC_DYNAMIC_LINKER \
50diff -Naur gcc-4.8.3.orig/gcc/config/arm/linux-elf.h gcc-4.8.3/gcc/config/arm/linux-elf.h
51--- gcc-4.8.3.orig/gcc/config/arm/linux-elf.h 2013-01-10 20:38:27.000000000 +0000
52+++ gcc-4.8.3/gcc/config/arm/linux-elf.h 2014-06-01 05:02:45.013805272 +0000
53@@ -57,7 +57,7 @@
54
55 #define LIBGCC_SPEC "%{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*} \
61 %{static:-Bstatic} \
62diff -Naur gcc-4.8.3.orig/gcc/config/c6x/uclinux-elf.h gcc-4.8.3/gcc/config/c6x/uclinux-elf.h
63--- gcc-4.8.3.orig/gcc/config/c6x/uclinux-elf.h 2013-01-10 20:38:27.000000000 +0000
64+++ gcc-4.8.3/gcc/config/c6x/uclinux-elf.h 2014-06-01 05:02:45.013805272 +0000
65@@ -36,7 +36,7 @@
66 #define STARTFILE_SPEC \
67 "%{!shared:crt1%O%s} crti%O%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
68
69-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
70+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
71
72 #undef LINK_SPEC
73 #define LINK_SPEC ENDIAN_LINK_SPEC \
74diff -Naur gcc-4.8.3.orig/gcc/config/cris/linux.h gcc-4.8.3/gcc/config/cris/linux.h
75--- gcc-4.8.3.orig/gcc/config/cris/linux.h 2013-01-10 20:38:27.000000000 +0000
76+++ gcc-4.8.3/gcc/config/cris/linux.h 2014-06-01 05:02:45.013805272 +0000
77@@ -102,7 +102,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 #undef CRIS_LINK_SUBTARGET_SPEC
85 #define CRIS_LINK_SUBTARGET_SPEC \
86diff -Naur gcc-4.8.3.orig/gcc/config/freebsd-spec.h gcc-4.8.3/gcc/config/freebsd-spec.h
87--- gcc-4.8.3.orig/gcc/config/freebsd-spec.h 2013-01-10 20:38:27.000000000 +0000
88+++ gcc-4.8.3/gcc/config/freebsd-spec.h 2014-06-01 05:02:45.013805272 +0000
89@@ -128,9 +128,9 @@
90 #endif
91
92 #if FBSD_MAJOR < 6
93-#define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
94+#define FBSD_DYNAMIC_LINKER "/tools/lib/ld-elf.so.1"
95 #else
96-#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
97+#define FBSD_DYNAMIC_LINKER "/tools/lib/ld-elf.so.1"
98 #endif
99
100 /* NOTE: The freebsd-spec.h header is included also for various
101diff -Naur gcc-4.8.3.orig/gcc/config/frv/linux.h gcc-4.8.3/gcc/config/frv/linux.h
102--- gcc-4.8.3.orig/gcc/config/frv/linux.h 2013-01-10 20:38:27.000000000 +0000
103+++ gcc-4.8.3/gcc/config/frv/linux.h 2014-06-01 05:02:45.013805272 +0000
104@@ -34,7 +34,7 @@
105 #define ENDFILE_SPEC \
106 "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
107
108-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
109+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
110
111 #undef LINK_SPEC
112 #define LINK_SPEC "\
113diff -Naur gcc-4.8.3.orig/gcc/config/i386/gnu.h gcc-4.8.3/gcc/config/i386/gnu.h
114--- gcc-4.8.3.orig/gcc/config/i386/gnu.h 2013-01-10 20:38:27.000000000 +0000
115+++ gcc-4.8.3/gcc/config/i386/gnu.h 2014-06-01 05:02:45.013805272 +0000
116@@ -22,7 +22,7 @@
117 #define GNU_USER_LINK_EMULATION "elf_i386"
118
119 #undef GNU_USER_DYNAMIC_LINKER
120-#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so"
121+#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so"
122
123 #undef STARTFILE_SPEC
124 #if defined HAVE_LD_PIE
125diff -Naur gcc-4.8.3.orig/gcc/config/i386/kfreebsd-gnu.h gcc-4.8.3/gcc/config/i386/kfreebsd-gnu.h
126--- gcc-4.8.3.orig/gcc/config/i386/kfreebsd-gnu.h 2013-01-10 20:38:27.000000000 +0000
127+++ gcc-4.8.3/gcc/config/i386/kfreebsd-gnu.h 2014-06-01 05:02:45.013805272 +0000
128@@ -19,4 +19,4 @@
129 <http://www.gnu.org/licenses/>. */
130
131 #define GNU_USER_LINK_EMULATION "elf_i386_fbsd"
132-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
133+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
134diff -Naur gcc-4.8.3.orig/gcc/config/i386/kfreebsd-gnu64.h gcc-4.8.3/gcc/config/i386/kfreebsd-gnu64.h
135--- gcc-4.8.3.orig/gcc/config/i386/kfreebsd-gnu64.h 2013-01-10 20:38:27.000000000 +0000
136+++ gcc-4.8.3/gcc/config/i386/kfreebsd-gnu64.h 2014-06-01 05:02:45.013805272 +0000
137@@ -22,6 +22,6 @@
138 #define GNU_USER_LINK_EMULATION64 "elf_x86_64_fbsd"
139 #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64_fbsd"
140
141-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
142-#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-kfreebsd-x86-64.so.1"
143-#define GLIBC_DYNAMIC_LINKERX32 "/lib/ld-kfreebsd-x32.so.1"
144+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
145+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-kfreebsd-x86-64.so.1"
146+#define GLIBC_DYNAMIC_LINKERX32 "/tools/lib/ld-kfreebsd-x32.so.1"
147diff -Naur gcc-4.8.3.orig/gcc/config/i386/linux.h gcc-4.8.3/gcc/config/i386/linux.h
148--- gcc-4.8.3.orig/gcc/config/i386/linux.h 2013-01-10 20:38:27.000000000 +0000
149+++ gcc-4.8.3/gcc/config/i386/linux.h 2014-06-01 05:02:45.013805272 +0000
150@@ -20,4 +20,4 @@
151 <http://www.gnu.org/licenses/>. */
152
153 #define GNU_USER_LINK_EMULATION "elf_i386"
154-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
155+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
156diff -Naur gcc-4.8.3.orig/gcc/config/i386/linux64.h gcc-4.8.3/gcc/config/i386/linux64.h
157--- gcc-4.8.3.orig/gcc/config/i386/linux64.h 2013-01-10 20:38:27.000000000 +0000
158+++ gcc-4.8.3/gcc/config/i386/linux64.h 2014-06-01 05:02:45.013805272 +0000
159@@ -27,6 +27,6 @@
160 #define GNU_USER_LINK_EMULATION64 "elf_x86_64"
161 #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64"
162
163-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
164-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
165-#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
166+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
167+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux-x86-64.so.2"
168+#define GLIBC_DYNAMIC_LINKERX32 "/tools/libx32/ld-linux-x32.so.2"
169diff -Naur gcc-4.8.3.orig/gcc/config/ia64/linux.h gcc-4.8.3/gcc/config/ia64/linux.h
170--- gcc-4.8.3.orig/gcc/config/ia64/linux.h 2013-01-10 20:38:27.000000000 +0000
171+++ gcc-4.8.3/gcc/config/ia64/linux.h 2014-06-01 05:02:45.013805272 +0000
172@@ -55,7 +55,7 @@
173 /* Define this for shared library support because it isn't in the main
174 linux.h file. */
175
176-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
177+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-ia64.so.2"
178
179 #undef LINK_SPEC
180 #define LINK_SPEC "\
181diff -Naur gcc-4.8.3.orig/gcc/config/knetbsd-gnu.h gcc-4.8.3/gcc/config/knetbsd-gnu.h
182--- gcc-4.8.3.orig/gcc/config/knetbsd-gnu.h 2013-01-10 20:38:27.000000000 +0000
183+++ gcc-4.8.3/gcc/config/knetbsd-gnu.h 2014-06-01 05:02:45.013805272 +0000
184@@ -32,4 +32,4 @@
185
186
187 #undef GNU_USER_DYNAMIC_LINKER
188-#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
189+#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so.1"
190diff -Naur gcc-4.8.3.orig/gcc/config/kopensolaris-gnu.h gcc-4.8.3/gcc/config/kopensolaris-gnu.h
191--- gcc-4.8.3.orig/gcc/config/kopensolaris-gnu.h 2013-01-10 20:38:27.000000000 +0000
192+++ gcc-4.8.3/gcc/config/kopensolaris-gnu.h 2014-06-01 05:02:45.013805272 +0000
193@@ -31,4 +31,4 @@
194 while (0)
195
196 #undef GNU_USER_DYNAMIC_LINKER
197-#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
198+#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so.1"
199diff -Naur gcc-4.8.3.orig/gcc/config/linux.h gcc-4.8.3/gcc/config/linux.h
200--- gcc-4.8.3.orig/gcc/config/linux.h 2013-01-10 20:38:27.000000000 +0000
201+++ gcc-4.8.3/gcc/config/linux.h 2014-06-01 05:02:45.013805272 +0000
202@@ -73,10 +73,10 @@
203 GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
204 GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
205 supporting both 32-bit and 64-bit compilation. */
206-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
207-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
208-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
209-#define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0"
210+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
211+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
212+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
213+#define UCLIBC_DYNAMIC_LINKERX32 "/tools/lib/ldx32-uClibc.so.0"
214 #define BIONIC_DYNAMIC_LINKER "/system/bin/linker"
215 #define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker"
216 #define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64"
217diff -Naur gcc-4.8.3.orig/gcc/config/m32r/linux.h gcc-4.8.3/gcc/config/m32r/linux.h
218--- gcc-4.8.3.orig/gcc/config/m32r/linux.h 2013-01-10 20:38:27.000000000 +0000
219+++ gcc-4.8.3/gcc/config/m32r/linux.h 2014-06-01 05:02:45.013805272 +0000
220@@ -37,7 +37,7 @@
221 When the -shared link option is used a final link is not being
222 done. */
223
224-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
225+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
226
227 #undef LINK_SPEC
228 #if TARGET_LITTLE_ENDIAN
229diff -Naur gcc-4.8.3.orig/gcc/config/m68k/linux.h gcc-4.8.3/gcc/config/m68k/linux.h
230--- gcc-4.8.3.orig/gcc/config/m68k/linux.h 2013-01-10 20:38:27.000000000 +0000
231+++ gcc-4.8.3/gcc/config/m68k/linux.h 2014-06-01 05:02:45.013805272 +0000
232@@ -71,7 +71,7 @@
233 When the -shared link option is used a final link is not being
234 done. */
235
236-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
237+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
238
239 #undef LINK_SPEC
240 #define LINK_SPEC "-m m68kelf %{shared} \
241diff -Naur gcc-4.8.3.orig/gcc/config/microblaze/linux.h gcc-4.8.3/gcc/config/microblaze/linux.h
242--- gcc-4.8.3.orig/gcc/config/microblaze/linux.h 2013-03-14 15:43:23.000000000 +0000
243+++ gcc-4.8.3/gcc/config/microblaze/linux.h 2014-06-01 05:02:45.013805272 +0000
244@@ -25,7 +25,7 @@
245 #undef TLS_NEEDS_GOT
246 #define TLS_NEEDS_GOT 1
247
248-#define DYNAMIC_LINKER "/lib/ld.so.1"
249+#define DYNAMIC_LINKER "/tools/lib/ld.so.1"
250 #undef SUBTARGET_EXTRA_SPECS
251 #define SUBTARGET_EXTRA_SPECS \
252 { "dynamic_linker", DYNAMIC_LINKER }
253diff -Naur gcc-4.8.3.orig/gcc/config/mips/linux.h gcc-4.8.3/gcc/config/mips/linux.h
254--- gcc-4.8.3.orig/gcc/config/mips/linux.h 2013-01-10 20:38:27.000000000 +0000
255+++ gcc-4.8.3/gcc/config/mips/linux.h 2014-06-01 05:02:45.017138692 +0000
256@@ -17,4 +17,4 @@
257 along with GCC; see the file COPYING3. If not see
258 <http://www.gnu.org/licenses/>. */
259
260-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
261+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
262diff -Naur gcc-4.8.3.orig/gcc/config/mips/linux64.h gcc-4.8.3/gcc/config/mips/linux64.h
263--- gcc-4.8.3.orig/gcc/config/mips/linux64.h 2013-01-10 20:38:27.000000000 +0000
264+++ gcc-4.8.3/gcc/config/mips/linux64.h 2014-06-01 05:02:45.017138692 +0000
265@@ -22,10 +22,10 @@
266 #define GNU_USER_LINK_EMULATION64 "elf64%{EB:b}%{EL:l}tsmip"
267 #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32"
268
269-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
270-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
271-#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
272-#define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
273+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
274+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld.so.1"
275+#define GLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld.so.1"
276+#define UCLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld-uClibc.so.0"
277 #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
278 #define GNU_USER_DYNAMIC_LINKERN32 \
279 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
280diff -Naur gcc-4.8.3.orig/gcc/config/mn10300/linux.h gcc-4.8.3/gcc/config/mn10300/linux.h
281--- gcc-4.8.3.orig/gcc/config/mn10300/linux.h 2013-01-10 20:38:27.000000000 +0000
282+++ gcc-4.8.3/gcc/config/mn10300/linux.h 2014-06-01 05:02:45.017138692 +0000
283@@ -32,7 +32,7 @@
284 #undef ASM_SPEC
285 #define ASM_SPEC ""
286
287-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
288+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
289
290 #undef LINK_SPEC
291 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
292diff -Naur gcc-4.8.3.orig/gcc/config/pa/pa-linux.h gcc-4.8.3/gcc/config/pa/pa-linux.h
293--- gcc-4.8.3.orig/gcc/config/pa/pa-linux.h 2013-01-10 20:38:27.000000000 +0000
294+++ gcc-4.8.3/gcc/config/pa/pa-linux.h 2014-06-01 05:02:45.017138692 +0000
295@@ -37,7 +37,7 @@
296 /* Define this for shared library support because it isn't in the main
297 linux.h file. */
298
299-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
300+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
301
302 #undef LINK_SPEC
303 #define LINK_SPEC "\
304diff -Naur gcc-4.8.3.orig/gcc/config/rs6000/freebsd64.h gcc-4.8.3/gcc/config/rs6000/freebsd64.h
305--- gcc-4.8.3.orig/gcc/config/rs6000/freebsd64.h 2013-01-10 20:38:27.000000000 +0000
306+++ gcc-4.8.3/gcc/config/rs6000/freebsd64.h 2014-06-01 05:02:45.017138692 +0000
307@@ -154,8 +154,8 @@
308 { "link_os_freebsd_spec32", LINK_OS_FREEBSD_SPEC32 }, \
309 { "link_os_freebsd_spec64", LINK_OS_FREEBSD_SPEC64 },
310
311-#define FREEBSD_DYNAMIC_LINKER32 "/libexec/ld-elf32.so.1"
312-#define FREEBSD_DYNAMIC_LINKER64 "/libexec/ld-elf.so.1"
313+#define FREEBSD_DYNAMIC_LINKER32 "/tools/lib/ld-elf32.so.1"
314+#define FREEBSD_DYNAMIC_LINKER64 "/tools/lib64/ld-elf.so.1"
315
316 #define LINK_OS_FREEBSD_SPEC_DEF32 "\
317 %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \
318diff -Naur gcc-4.8.3.orig/gcc/config/rs6000/linux64.h gcc-4.8.3/gcc/config/rs6000/linux64.h
319--- gcc-4.8.3.orig/gcc/config/rs6000/linux64.h 2014-04-04 15:10:24.000000000 +0000
320+++ gcc-4.8.3/gcc/config/rs6000/linux64.h 2014-06-01 05:02:45.017138692 +0000
321@@ -366,14 +366,14 @@
322 #undef LINK_OS_DEFAULT_SPEC
323 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
324
325-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
326+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
327 #ifdef LINUX64_DEFAULT_ABI_ELFv2
328-#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/lib64/ld64.so.1;:/lib64/ld64.so.2}"
329+#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/lib64/ld64.so.1;:/tools/lib64/ld64.so.2}"
330 #else
331-#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/lib64/ld64.so.2;:/lib64/ld64.so.1}"
332+#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/lib64/ld64.so.2;:/tools/lib64/ld64.so.1}"
333 #endif
334-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
335-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
336+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
337+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
338 #if DEFAULT_LIBC == LIBC_UCLIBC
339 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
340 #elif DEFAULT_LIBC == LIBC_GLIBC
341diff -Naur gcc-4.8.3.orig/gcc/config/rs6000/sysv4.h gcc-4.8.3/gcc/config/rs6000/sysv4.h
342--- gcc-4.8.3.orig/gcc/config/rs6000/sysv4.h 2014-04-04 14:50:31.000000000 +0000
343+++ gcc-4.8.3/gcc/config/rs6000/sysv4.h 2014-06-01 05:02:45.017138692 +0000
344@@ -761,8 +761,8 @@
345
346 #define LINK_START_LINUX_SPEC ""
347
348-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
349-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
350+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
351+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
352 #if DEFAULT_LIBC == LIBC_UCLIBC
353 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
354 #elif !defined (DEFAULT_LIBC) || DEFAULT_LIBC == LIBC_GLIBC
355@@ -806,7 +806,7 @@
356 #define LINK_OS_NETBSD_SPEC "\
357 %{!shared: %{!static: \
358 %{rdynamic:-export-dynamic} \
359- -dynamic-linker /usr/libexec/ld.elf_so}}"
360+ -dynamic-linker /tools/lib/ld.elf_so}}"
361
362 #define CPP_OS_NETBSD_SPEC "\
363 -D__powerpc__ -D__NetBSD__ -D__KPRINTF_ATTRIBUTE__"
364diff -Naur gcc-4.8.3.orig/gcc/config/s390/linux.h gcc-4.8.3/gcc/config/s390/linux.h
365--- gcc-4.8.3.orig/gcc/config/s390/linux.h 2013-01-10 20:38:27.000000000 +0000
366+++ gcc-4.8.3/gcc/config/s390/linux.h 2014-06-01 05:02:45.017138692 +0000
367@@ -60,8 +60,8 @@
368 #define MULTILIB_DEFAULTS { "m31" }
369 #endif
370
371-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
372-#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
373+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
374+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld64.so.1"
375
376 #undef LINK_SPEC
377 #define LINK_SPEC \
378diff -Naur gcc-4.8.3.orig/gcc/config/sh/linux.h gcc-4.8.3/gcc/config/sh/linux.h
379--- gcc-4.8.3.orig/gcc/config/sh/linux.h 2013-03-14 03:01:53.000000000 +0000
380+++ gcc-4.8.3/gcc/config/sh/linux.h 2014-06-01 05:02:45.017138692 +0000
381@@ -43,7 +43,7 @@
382
383 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
384
385-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
386+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
387
388 #undef SUBTARGET_LINK_EMUL_SUFFIX
389 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
390diff -Naur gcc-4.8.3.orig/gcc/config/sparc/linux.h gcc-4.8.3/gcc/config/sparc/linux.h
391--- gcc-4.8.3.orig/gcc/config/sparc/linux.h 2013-01-10 20:38:27.000000000 +0000
392+++ gcc-4.8.3/gcc/config/sparc/linux.h 2014-06-01 05:02:45.017138692 +0000
393@@ -83,7 +83,7 @@
394 When the -shared link option is used a final link is not being
395 done. */
396
397-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
398+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
399
400 #undef LINK_SPEC
401 #define LINK_SPEC "-m elf32_sparc %{shared:-shared} \
402diff -Naur gcc-4.8.3.orig/gcc/config/sparc/linux64.h gcc-4.8.3/gcc/config/sparc/linux64.h
403--- gcc-4.8.3.orig/gcc/config/sparc/linux64.h 2013-01-10 20:38:27.000000000 +0000
404+++ gcc-4.8.3/gcc/config/sparc/linux64.h 2014-06-01 05:02:45.017138692 +0000
405@@ -92,8 +92,8 @@
406 When the -shared link option is used a final link is not being
407 done. */
408
409-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
410-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
411+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
412+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
413
414 #ifdef SPARC_BI_ARCH
415
416@@ -201,7 +201,7 @@
417 #else /* !SPARC_BI_ARCH */
418
419 #undef LINK_SPEC
420-#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
421+#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
422 %{!shared: \
423 %{!static: \
424 %{rdynamic:-export-dynamic} \
425diff -Naur gcc-4.8.3.orig/gcc/config/xtensa/linux.h gcc-4.8.3/gcc/config/xtensa/linux.h
426--- gcc-4.8.3.orig/gcc/config/xtensa/linux.h 2013-01-10 20:38:27.000000000 +0000
427+++ gcc-4.8.3/gcc/config/xtensa/linux.h 2014-06-01 05:02:45.017138692 +0000
428@@ -44,7 +44,7 @@
429 %{mlongcalls:--longcalls} \
430 %{mno-longcalls:--no-longcalls}"
431
432-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
433+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
434
435 #undef LINK_SPEC
436 #define LINK_SPEC \
Note: See TracBrowser for help on using the repository browser.