source: patches/gcc-5.2.0-specs-1.patch@ 991595cf

sysvinit
Last change on this file since 991595cf was cc49a21, checked in by William Harrington <kb0iic@…>, 9 years ago

Update GCC 5.2.0 from GCC 4.8.0.

  • Property mode set to 100644
File size: 19.3 KB
RevLine 
[cc49a21]1Submitted By: Martin Ward <macros_the_black@ntlworld.com>
2Date: 10-16-2015
3Initial Package Version: 4.9.2
[0b44df8]4Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
[cc49a21]5 the Pure LFS project. With contributions from William Harrington
[0b44df8]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
[cc49a21]10diff -Naur gcc-5.2.0.orig/gcc/config/aarch64/aarch64-linux.h gcc-5.2.0/gcc/config/aarch64/aarch64-linux.h
11--- gcc-5.2.0.orig/gcc/config/aarch64/aarch64-linux.h 2015-05-12 08:49:59.000000000 +0000
12+++ gcc-5.2.0/gcc/config/aarch64/aarch64-linux.h 2015-10-17 20:29:44.970812436 +0000
[0b44df8]13@@ -21,7 +21,7 @@
14 #ifndef GCC_AARCH64_LINUX_H
15 #define GCC_AARCH64_LINUX_H
16
[cc49a21]17-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
18+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
[0b44df8]19
[cc49a21]20 #undef ASAN_CC1_SPEC
21 #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}"
22diff -Naur gcc-5.2.0.orig/gcc/config/alpha/linux-elf.h gcc-5.2.0/gcc/config/alpha/linux-elf.h
23--- gcc-5.2.0.orig/gcc/config/alpha/linux-elf.h 2015-01-05 12:33:28.000000000 +0000
24+++ gcc-5.2.0/gcc/config/alpha/linux-elf.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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
[cc49a21]36diff -Naur gcc-5.2.0.orig/gcc/config/arm/linux-eabi.h gcc-5.2.0/gcc/config/arm/linux-eabi.h
37--- gcc-5.2.0.orig/gcc/config/arm/linux-eabi.h 2015-01-05 12:33:28.000000000 +0000
38+++ gcc-5.2.0/gcc/config/arm/linux-eabi.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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 \
[cc49a21]50diff -Naur gcc-5.2.0.orig/gcc/config/arm/linux-elf.h gcc-5.2.0/gcc/config/arm/linux-elf.h
51--- gcc-5.2.0.orig/gcc/config/arm/linux-elf.h 2015-06-23 09:26:54.000000000 +0000
52+++ gcc-5.2.0/gcc/config/arm/linux-elf.h 2015-10-17 20:28:41.529210187 +0000
53@@ -62,7 +62,7 @@
[0b44df8]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} \
[cc49a21]62diff -Naur gcc-5.2.0.orig/gcc/config/bfin/linux.h gcc-5.2.0/gcc/config/bfin/linux.h
63--- gcc-5.2.0.orig/gcc/config/bfin/linux.h 2015-01-05 12:33:28.000000000 +0000
64+++ gcc-5.2.0/gcc/config/bfin/linux.h 2015-10-17 20:28:41.529210187 +0000
65@@ -45,7 +45,7 @@
66 %{shared:-G -Bdynamic} \
67 %{!shared: %{!static: \
68 %{rdynamic:-export-dynamic} \
69- -dynamic-linker /lib/ld-uClibc.so.0} \
70+ -dynamic-linker /tools/lib/ld-uClibc.so.0} \
71 %{static}} -init __init -fini __fini"
72
73 #undef TARGET_SUPPORTS_SYNC_CALLS
74diff -Naur gcc-5.2.0.orig/gcc/config/cris/linux.h gcc-5.2.0/gcc/config/cris/linux.h
75--- gcc-5.2.0.orig/gcc/config/cris/linux.h 2015-01-05 12:33:28.000000000 +0000
76+++ gcc-5.2.0/gcc/config/cris/linux.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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 \
[cc49a21]86diff -Naur gcc-5.2.0.orig/gcc/config/freebsd-spec.h gcc-5.2.0/gcc/config/freebsd-spec.h
87--- gcc-5.2.0.orig/gcc/config/freebsd-spec.h 2015-06-25 17:53:14.000000000 +0000
88+++ gcc-5.2.0/gcc/config/freebsd-spec.h 2015-10-17 20:28:41.529210187 +0000
89@@ -129,9 +129,9 @@
[0b44df8]90 #endif
91
92 #if FBSD_MAJOR < 6
93-#define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
[cc49a21]94+#define FBSD_DYNAMIC_LINKER "/tools/libexec/ld-elf.so.1"
[0b44df8]95 #else
96-#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
[cc49a21]97+#define FBSD_DYNAMIC_LINKER "/tools/libexec/ld-elf.so.1"
[0b44df8]98 #endif
99
100 /* NOTE: The freebsd-spec.h header is included also for various
[cc49a21]101diff -Naur gcc-5.2.0.orig/gcc/config/frv/linux.h gcc-5.2.0/gcc/config/frv/linux.h
102--- gcc-5.2.0.orig/gcc/config/frv/linux.h 2015-01-05 12:33:28.000000000 +0000
103+++ gcc-5.2.0/gcc/config/frv/linux.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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 "\
[cc49a21]113diff -Naur gcc-5.2.0.orig/gcc/config/i386/gnu.h gcc-5.2.0/gcc/config/i386/gnu.h
114--- gcc-5.2.0.orig/gcc/config/i386/gnu.h 2015-01-05 12:33:28.000000000 +0000
115+++ gcc-5.2.0/gcc/config/i386/gnu.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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
[cc49a21]125diff -Naur gcc-5.2.0.orig/gcc/config/i386/kfreebsd-gnu.h gcc-5.2.0/gcc/config/i386/kfreebsd-gnu.h
126--- gcc-5.2.0.orig/gcc/config/i386/kfreebsd-gnu.h 2015-01-05 12:33:28.000000000 +0000
127+++ gcc-5.2.0/gcc/config/i386/kfreebsd-gnu.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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"
[cc49a21]134diff -Naur gcc-5.2.0.orig/gcc/config/i386/kfreebsd-gnu64.h gcc-5.2.0/gcc/config/i386/kfreebsd-gnu64.h
135--- gcc-5.2.0.orig/gcc/config/i386/kfreebsd-gnu64.h 2015-01-05 12:33:28.000000000 +0000
136+++ gcc-5.2.0/gcc/config/i386/kfreebsd-gnu64.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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"
[cc49a21]147diff -Naur gcc-5.2.0.orig/gcc/config/i386/linux.h gcc-5.2.0/gcc/config/i386/linux.h
148--- gcc-5.2.0.orig/gcc/config/i386/linux.h 2015-01-05 12:33:28.000000000 +0000
149+++ gcc-5.2.0/gcc/config/i386/linux.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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"
[cc49a21]156diff -Naur gcc-5.2.0.orig/gcc/config/i386/linux64.h gcc-5.2.0/gcc/config/i386/linux64.h
157--- gcc-5.2.0.orig/gcc/config/i386/linux64.h 2015-01-05 12:33:28.000000000 +0000
158+++ gcc-5.2.0/gcc/config/i386/linux64.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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"
[cc49a21]169diff -Naur gcc-5.2.0.orig/gcc/config/ia64/linux.h gcc-5.2.0/gcc/config/ia64/linux.h
170--- gcc-5.2.0.orig/gcc/config/ia64/linux.h 2015-01-05 12:33:28.000000000 +0000
171+++ gcc-5.2.0/gcc/config/ia64/linux.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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 "\
[cc49a21]181diff -Naur gcc-5.2.0.orig/gcc/config/knetbsd-gnu.h gcc-5.2.0/gcc/config/knetbsd-gnu.h
182--- gcc-5.2.0.orig/gcc/config/knetbsd-gnu.h 2015-01-05 12:33:28.000000000 +0000
183+++ gcc-5.2.0/gcc/config/knetbsd-gnu.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]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"
[cc49a21]190diff -Naur gcc-5.2.0.orig/gcc/config/kopensolaris-gnu.h gcc-5.2.0/gcc/config/kopensolaris-gnu.h
191--- gcc-5.2.0.orig/gcc/config/kopensolaris-gnu.h 2015-01-05 12:33:28.000000000 +0000
192+++ gcc-5.2.0/gcc/config/kopensolaris-gnu.h 2015-10-17 20:28:41.529210187 +0000
193@@ -31,4 +31,5 @@
[0b44df8]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"
[cc49a21]199+
200diff -Naur gcc-5.2.0.orig/gcc/config/linux.h gcc-5.2.0/gcc/config/linux.h
201--- gcc-5.2.0.orig/gcc/config/linux.h 2015-01-05 12:33:28.000000000 +0000
202+++ gcc-5.2.0/gcc/config/linux.h 2015-10-17 20:28:41.529210187 +0000
[0b44df8]203@@ -73,10 +73,10 @@
204 GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
205 GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
206 supporting both 32-bit and 64-bit compilation. */
207-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
208-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
209-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
210-#define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0"
211+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
212+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
213+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
214+#define UCLIBC_DYNAMIC_LINKERX32 "/tools/lib/ldx32-uClibc.so.0"
215 #define BIONIC_DYNAMIC_LINKER "/system/bin/linker"
216 #define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker"
217 #define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64"
[cc49a21]218diff -Naur gcc-5.2.0.orig/gcc/config/lm32/uclinux-elf.h gcc-5.2.0/gcc/config/lm32/uclinux-elf.h
219--- gcc-5.2.0.orig/gcc/config/lm32/uclinux-elf.h 2015-01-05 12:33:28.000000000 +0000
220+++ gcc-5.2.0/gcc/config/lm32/uclinux-elf.h 2015-10-17 20:28:41.529210187 +0000
221@@ -67,7 +67,7 @@
222 %{shared:-shared} \
223 %{symbolic:-Bsymbolic} \
224 %{rdynamic:-export-dynamic} \
225- -dynamic-linker /lib/ld-linux.so.2"
226+ -dynamic-linker /tools/lib/ld-linux.so.2"
227
228 #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
229
230diff -Naur gcc-5.2.0.orig/gcc/config/m68k/linux.h gcc-5.2.0/gcc/config/m68k/linux.h
231--- gcc-5.2.0.orig/gcc/config/m68k/linux.h 2015-01-05 12:33:28.000000000 +0000
232+++ gcc-5.2.0/gcc/config/m68k/linux.h 2015-10-17 20:28:41.533210287 +0000
[0b44df8]233@@ -71,7 +71,7 @@
234 When the -shared link option is used a final link is not being
235 done. */
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} \
[cc49a21]242diff -Naur gcc-5.2.0.orig/gcc/config/microblaze/linux.h gcc-5.2.0/gcc/config/microblaze/linux.h
243--- gcc-5.2.0.orig/gcc/config/microblaze/linux.h 2015-05-28 14:08:19.000000000 +0000
244+++ gcc-5.2.0/gcc/config/microblaze/linux.h 2015-10-17 20:28:41.533210287 +0000
245@@ -28,7 +28,7 @@
[0b44df8]246 #undef TLS_NEEDS_GOT
247 #define TLS_NEEDS_GOT 1
248
249-#define DYNAMIC_LINKER "/lib/ld.so.1"
250+#define DYNAMIC_LINKER "/tools/lib/ld.so.1"
251 #undef SUBTARGET_EXTRA_SPECS
252 #define SUBTARGET_EXTRA_SPECS \
253 { "dynamic_linker", DYNAMIC_LINKER }
[cc49a21]254diff -Naur gcc-5.2.0.orig/gcc/config/mips/linux.h gcc-5.2.0/gcc/config/mips/linux.h
255--- gcc-5.2.0.orig/gcc/config/mips/linux.h 2015-01-05 12:33:28.000000000 +0000
256+++ gcc-5.2.0/gcc/config/mips/linux.h 2015-10-17 20:30:30.887975439 +0000
257@@ -22,20 +22,20 @@
[0b44df8]258 #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32"
259
[cc49a21]260 #define GLIBC_DYNAMIC_LINKER32 \
261- "%{mnan=2008:/lib/ld-linux-mipsn8.so.1;:/lib/ld.so.1}"
262+ "%{mnan=2008:/tools/lib/ld-linux-mipsn8.so.1;:/tools/lib/ld.so.1}"
263 #define GLIBC_DYNAMIC_LINKER64 \
264- "%{mnan=2008:/lib64/ld-linux-mipsn8.so.1;:/lib64/ld.so.1}"
265+ "%{mnan=2008:/tools/lib64/ld-linux-mipsn8.so.1;:/tools/lib64/ld.so.1}"
266 #define GLIBC_DYNAMIC_LINKERN32 \
267- "%{mnan=2008:/lib32/ld-linux-mipsn8.so.1;:/lib32/ld.so.1}"
268+ "%{mnan=2008:/tools/lib32/ld-linux-mipsn8.so.1;:/tools/lib32/ld.so.1}"
269
270 #undef UCLIBC_DYNAMIC_LINKER32
271 #define UCLIBC_DYNAMIC_LINKER32 \
272- "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}"
273+ "%{mnan=2008:/tools/lib/ld-uClibc-mipsn8.so.0;:/tools/lib/ld-uClibc.so.0}"
274 #undef UCLIBC_DYNAMIC_LINKER64
275 #define UCLIBC_DYNAMIC_LINKER64 \
276- "%{mnan=2008:/lib/ld64-uClibc-mipsn8.so.0;:/lib/ld64-uClibc.so.0}"
277+ "%{mnan=2008:/tools/lib/ld64-uClibc-mipsn8.so.0;:/tools/lib/ld64-uClibc.so.0}"
278 #define UCLIBC_DYNAMIC_LINKERN32 \
279- "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}"
280+ "%{mnan=2008:/tools/lib32/ld-uClibc-mipsn8.so.0;:/tools/lib32/ld-uClibc.so.0}"
281
[0b44df8]282 #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
283 #define GNU_USER_DYNAMIC_LINKERN32 \
[cc49a21]284diff -Naur gcc-5.2.0.orig/gcc/config/mn10300/linux.h gcc-5.2.0/gcc/config/mn10300/linux.h
285--- gcc-5.2.0.orig/gcc/config/mn10300/linux.h 2015-01-05 12:33:28.000000000 +0000
286+++ gcc-5.2.0/gcc/config/mn10300/linux.h 2015-10-17 20:29:02.941750373 +0000
[0b44df8]287@@ -32,7 +32,7 @@
288 #undef ASM_SPEC
289 #define ASM_SPEC ""
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 "%{mrelax:--relax} %{shared:-shared} \
[cc49a21]296diff -Naur gcc-5.2.0.orig/gcc/config/pa/pa-linux.h gcc-5.2.0/gcc/config/pa/pa-linux.h
297--- gcc-5.2.0.orig/gcc/config/pa/pa-linux.h 2015-05-28 14:07:55.000000000 +0000
298+++ gcc-5.2.0/gcc/config/pa/pa-linux.h 2015-10-17 20:29:02.941750373 +0000
[0b44df8]299@@ -37,7 +37,7 @@
300 /* Define this for shared library support because it isn't in the main
301 linux.h file. */
302
303-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
304+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
305
306 #undef LINK_SPEC
307 #define LINK_SPEC "\
[cc49a21]308diff -Naur gcc-5.2.0.orig/gcc/config/rs6000/linux64.h gcc-5.2.0/gcc/config/rs6000/linux64.h
309--- gcc-5.2.0.orig/gcc/config/rs6000/linux64.h 2015-03-09 23:18:57.000000000 +0000
310+++ gcc-5.2.0/gcc/config/rs6000/linux64.h 2015-10-17 20:29:02.941750373 +0000
311@@ -357,14 +357,14 @@
[0b44df8]312 #undef LINK_OS_DEFAULT_SPEC
313 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
314
315-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
316+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
317 #ifdef LINUX64_DEFAULT_ABI_ELFv2
318-#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/lib64/ld64.so.1;:/lib64/ld64.so.2}"
[cc49a21]319+#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/tools/lib64/ld64.so.1;:/tools/lib64/ld64.so.2}"
[0b44df8]320 #else
321-#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/lib64/ld64.so.2;:/lib64/ld64.so.1}"
[cc49a21]322+#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/tools/lib64/ld64.so.2;:/tools/lib64/ld64.so.1}"
[0b44df8]323 #endif
324-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
325-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
326+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
327+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
328 #if DEFAULT_LIBC == LIBC_UCLIBC
329 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
330 #elif DEFAULT_LIBC == LIBC_GLIBC
[cc49a21]331diff -Naur gcc-5.2.0.orig/gcc/config/rs6000/sysv4.h gcc-5.2.0/gcc/config/rs6000/sysv4.h
332--- gcc-5.2.0.orig/gcc/config/rs6000/sysv4.h 2015-01-05 12:33:28.000000000 +0000
333+++ gcc-5.2.0/gcc/config/rs6000/sysv4.h 2015-10-17 20:29:02.941750373 +0000
334@@ -762,8 +762,8 @@
[0b44df8]335
336 #define LINK_START_LINUX_SPEC ""
337
338-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
339-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
340+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
341+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
342 #if DEFAULT_LIBC == LIBC_UCLIBC
343 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
344 #elif !defined (DEFAULT_LIBC) || DEFAULT_LIBC == LIBC_GLIBC
[cc49a21]345diff -Naur gcc-5.2.0.orig/gcc/config/s390/linux.h gcc-5.2.0/gcc/config/s390/linux.h
346--- gcc-5.2.0.orig/gcc/config/s390/linux.h 2015-05-11 07:14:10.000000000 +0000
347+++ gcc-5.2.0/gcc/config/s390/linux.h 2015-10-17 20:29:02.941750373 +0000
[0b44df8]348@@ -60,8 +60,8 @@
349 #define MULTILIB_DEFAULTS { "m31" }
350 #endif
351
352-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
353-#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
354+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
[cc49a21]355+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
[0b44df8]356
357 #undef LINK_SPEC
358 #define LINK_SPEC \
[cc49a21]359diff -Naur gcc-5.2.0.orig/gcc/config/sh/linux.h gcc-5.2.0/gcc/config/sh/linux.h
360--- gcc-5.2.0.orig/gcc/config/sh/linux.h 2015-01-05 12:33:28.000000000 +0000
361+++ gcc-5.2.0/gcc/config/sh/linux.h 2015-10-17 20:29:02.941750373 +0000
[0b44df8]362@@ -43,7 +43,7 @@
363
364 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
365
366-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
367+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
368
369 #undef SUBTARGET_LINK_EMUL_SUFFIX
370 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
[cc49a21]371diff -Naur gcc-5.2.0.orig/gcc/config/sparc/linux.h gcc-5.2.0/gcc/config/sparc/linux.h
372--- gcc-5.2.0.orig/gcc/config/sparc/linux.h 2015-01-05 12:33:28.000000000 +0000
373+++ gcc-5.2.0/gcc/config/sparc/linux.h 2015-10-17 20:29:02.941750373 +0000
[0b44df8]374@@ -83,7 +83,7 @@
375 When the -shared link option is used a final link is not being
376 done. */
377
378-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
379+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
380
381 #undef LINK_SPEC
382 #define LINK_SPEC "-m elf32_sparc %{shared:-shared} \
[cc49a21]383diff -Naur gcc-5.2.0.orig/gcc/config/sparc/linux64.h gcc-5.2.0/gcc/config/sparc/linux64.h
384--- gcc-5.2.0.orig/gcc/config/sparc/linux64.h 2015-01-05 12:33:28.000000000 +0000
385+++ gcc-5.2.0/gcc/config/sparc/linux64.h 2015-10-17 20:29:02.941750373 +0000
386@@ -84,8 +84,8 @@
[0b44df8]387 When the -shared link option is used a final link is not being
388 done. */
389
390-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
391-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
392+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
393+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
394
395 #ifdef SPARC_BI_ARCH
396
[cc49a21]397@@ -193,7 +193,7 @@
[0b44df8]398 #else /* !SPARC_BI_ARCH */
399
400 #undef LINK_SPEC
401-#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
402+#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
403 %{!shared: \
404 %{!static: \
405 %{rdynamic:-export-dynamic} \
[cc49a21]406diff -Naur gcc-5.2.0.orig/gcc/config/vax/linux.h gcc-5.2.0/gcc/config/vax/linux.h
407--- gcc-5.2.0.orig/gcc/config/vax/linux.h 2015-01-05 12:33:28.000000000 +0000
408+++ gcc-5.2.0/gcc/config/vax/linux.h 2015-10-17 20:29:02.941750373 +0000
409@@ -41,7 +41,7 @@
410 %{!shared: \
411 %{!static: \
412 %{rdynamic:-export-dynamic} \
413- -dynamic-linker /lib/ld.so.1} \
414+ -dynamic-linker /tools/lib/ld.so.1} \
415 %{static:-static}}"
416
417 #undef WCHAR_TYPE
418diff -Naur gcc-5.2.0.orig/gcc/config/xtensa/linux.h gcc-5.2.0/gcc/config/xtensa/linux.h
419--- gcc-5.2.0.orig/gcc/config/xtensa/linux.h 2015-01-05 12:33:28.000000000 +0000
420+++ gcc-5.2.0/gcc/config/xtensa/linux.h 2015-10-17 20:29:02.941750373 +0000
[0b44df8]421@@ -44,7 +44,7 @@
422 %{mlongcalls:--longcalls} \
423 %{mno-longcalls:--no-longcalls}"
424
425-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
426+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
427
428 #undef LINK_SPEC
429 #define LINK_SPEC \
Note: See TracBrowser for help on using the repository browser.