source: patches/gcc-5.3.0-pure64_specs-1.patch@ b0d10fa

sysvinit
Last change on this file since b0d10fa was 8633cac, checked in by William Harrington <kb0iic@…>, 9 years ago

GCC 5.3.0 patches renamed.

  • Property mode set to 100644
File size: 29.0 KB
RevLine 
[8633cac]1Submitted By: William Harrington <kb0iic at cross-lfs dot org>
2Date: 12-28-2015
3Initial Package Version: 5.1.0
4Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
5 the Pure LFS project with help from
6 Martin Ward <macros_the_black@ntlworld.com>
7Upstream Status: Not Applied - CLFS Specific
8Description: This patch makes changes to the paths for pure64, eg 64bit libs
9 in /usr/lib, 32bit in /usr/lib32.
10Comment: Renamed for GCC 5.3.0
11
12diff -Naur gcc-5.2.0.orig/gcc/config/aarch64/aarch64-linux.h gcc-5.2.0/gcc/config/aarch64/aarch64-linux.h
13--- gcc-5.2.0.orig/gcc/config/aarch64/aarch64-linux.h 2015-05-12 08:49:59.000000000 +0000
14+++ gcc-5.2.0/gcc/config/aarch64/aarch64-linux.h 2015-08-16 03:06:42.658145312 +0000
15@@ -21,7 +21,7 @@
16 #ifndef GCC_AARCH64_LINUX_H
17 #define GCC_AARCH64_LINUX_H
18
19-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
20+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
21
22 #undef ASAN_CC1_SPEC
23 #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}"
24diff -Naur gcc-5.2.0.orig/gcc/config/alpha/linux-elf.h gcc-5.2.0/gcc/config/alpha/linux-elf.h
25--- gcc-5.2.0.orig/gcc/config/alpha/linux-elf.h 2015-01-05 12:33:28.000000000 +0000
26+++ gcc-5.2.0/gcc/config/alpha/linux-elf.h 2015-08-16 03:06:42.658145312 +0000
27@@ -23,8 +23,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 DEFAULT_LIBC == LIBC_UCLIBC
36 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
37 #elif DEFAULT_LIBC == LIBC_GLIBC
38diff -Naur gcc-5.2.0.orig/gcc/config/arm/linux-eabi.h gcc-5.2.0/gcc/config/arm/linux-eabi.h
39--- gcc-5.2.0.orig/gcc/config/arm/linux-eabi.h 2015-01-05 12:33:28.000000000 +0000
40+++ gcc-5.2.0/gcc/config/arm/linux-eabi.h 2015-08-16 03:06:42.658145312 +0000
41@@ -68,8 +68,8 @@
42 GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI. */
43
44 #undef GLIBC_DYNAMIC_LINKER
45-#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3"
46-#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3"
47+#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/tools/lib/ld-linux.so.3"
48+#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/tools/lib/ld-linux-armhf.so.3"
49 #define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT
50
51 #define GLIBC_DYNAMIC_LINKER \
52diff -Naur gcc-5.2.0.orig/gcc/config/arm/linux-elf.h gcc-5.2.0/gcc/config/arm/linux-elf.h
53--- gcc-5.2.0.orig/gcc/config/arm/linux-elf.h 2015-06-23 09:26:54.000000000 +0000
54+++ gcc-5.2.0/gcc/config/arm/linux-elf.h 2015-08-16 03:06:42.658145312 +0000
55@@ -62,7 +62,7 @@
56
57 #define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
58
59-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
60+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
61
62 #define LINUX_TARGET_LINK_SPEC "%{h*} \
63 %{static:-Bstatic} \
64diff -Naur gcc-5.2.0.orig/gcc/config/bfin/linux.h gcc-5.2.0/gcc/config/bfin/linux.h
65--- gcc-5.2.0.orig/gcc/config/bfin/linux.h 2015-01-05 12:33:28.000000000 +0000
66+++ gcc-5.2.0/gcc/config/bfin/linux.h 2015-08-16 03:06:42.658145312 +0000
67@@ -45,7 +45,7 @@
68 %{shared:-G -Bdynamic} \
69 %{!shared: %{!static: \
70 %{rdynamic:-export-dynamic} \
71- -dynamic-linker /lib/ld-uClibc.so.0} \
72+ -dynamic-linker /tools/lib/ld-uClibc.so.0} \
73 %{static}} -init __init -fini __fini"
74
75 #undef TARGET_SUPPORTS_SYNC_CALLS
76diff -Naur gcc-5.2.0.orig/gcc/config/c6x/uclinux-elf.h gcc-5.2.0/gcc/config/c6x/uclinux-elf.h
77--- gcc-5.2.0.orig/gcc/config/c6x/uclinux-elf.h 2015-01-05 12:33:28.000000000 +0000
78+++ gcc-5.2.0/gcc/config/c6x/uclinux-elf.h 2015-08-16 03:06:42.661478408 +0000
79@@ -36,7 +36,7 @@
80 #define STARTFILE_SPEC \
81 "%{!shared:crt1%O%s} crti%O%s %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
82
83-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
84+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
85
86 #undef LINK_SPEC
87 #define LINK_SPEC ENDIAN_LINK_SPEC \
88diff -Naur gcc-5.2.0.orig/gcc/config/cris/linux.h gcc-5.2.0/gcc/config/cris/linux.h
89--- gcc-5.2.0.orig/gcc/config/cris/linux.h 2015-01-05 12:33:28.000000000 +0000
90+++ gcc-5.2.0/gcc/config/cris/linux.h 2015-08-16 03:06:42.661478408 +0000
91@@ -102,7 +102,7 @@
92 #undef CRIS_DEFAULT_CPU_VERSION
93 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
94
95-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
96+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
97
98 #undef CRIS_LINK_SUBTARGET_SPEC
99 #define CRIS_LINK_SUBTARGET_SPEC \
100diff -Naur gcc-5.2.0.orig/gcc/config/freebsd-spec.h gcc-5.2.0/gcc/config/freebsd-spec.h
101--- gcc-5.2.0.orig/gcc/config/freebsd-spec.h 2015-06-25 17:53:14.000000000 +0000
102+++ gcc-5.2.0/gcc/config/freebsd-spec.h 2015-08-16 03:06:42.661478408 +0000
103@@ -131,7 +131,7 @@
104 #if FBSD_MAJOR < 6
105 #define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
106 #else
107-#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
108+#define FBSD_DYNAMIC_LINKER "/tools/libexec/ld-elf.so.1"
109 #endif
110
111 /* NOTE: The freebsd-spec.h header is included also for various
112diff -Naur gcc-5.2.0.orig/gcc/config/freebsd-spec.h.orig gcc-5.2.0/gcc/config/freebsd-spec.h.orig
113--- gcc-5.2.0.orig/gcc/config/freebsd-spec.h.orig 1970-01-01 00:00:00.000000000 +0000
114+++ gcc-5.2.0/gcc/config/freebsd-spec.h.orig 2015-06-25 17:53:14.000000000 +0000
115@@ -0,0 +1,139 @@
116+/* Base configuration file for all FreeBSD targets.
117+ Copyright (C) 1999-2015 Free Software Foundation, Inc.
118+
119+This file is part of GCC.
120+
121+GCC is free software; you can redistribute it and/or modify
122+it under the terms of the GNU General Public License as published by
123+the Free Software Foundation; either version 3, or (at your option)
124+any later version.
125+
126+GCC is distributed in the hope that it will be useful,
127+but WITHOUT ANY WARRANTY; without even the implied warranty of
128+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
129+GNU General Public License for more details.
130+
131+Under Section 7 of GPL version 3, you are granted additional
132+permissions described in the GCC Runtime Library Exception, version
133+3.1, as published by the Free Software Foundation.
134+
135+You should have received a copy of the GNU General Public License and
136+a copy of the GCC Runtime Library Exception along with this program;
137+see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
138+<http://www.gnu.org/licenses/>. */
139+
140+/* Common FreeBSD configuration.
141+ All FreeBSD architectures should include this file, which will specify
142+ their commonalities.
143+ Adapted from gcc/config/freebsd.h by
144+ David O'Brien <obrien@FreeBSD.org>
145+ Loren J. Rittle <ljrittle@acm.org>. */
146+
147+
148+/* In case we need to know. */
149+#define USING_CONFIG_FREEBSD_SPEC 1
150+
151+#define FBSD_TARGET_OS_CPP_BUILTINS() \
152+ do \
153+ { \
154+ builtin_define_with_int_value ("__FreeBSD__", FBSD_MAJOR); \
155+ builtin_define_std ("unix"); \
156+ builtin_define ("__KPRINTF_ATTRIBUTE__"); \
157+ builtin_assert ("system=unix"); \
158+ builtin_assert ("system=bsd"); \
159+ builtin_assert ("system=FreeBSD"); \
160+ FBSD_TARGET_CPU_CPP_BUILTINS(); \
161+ } \
162+ while (0)
163+
164+/* Define the default FreeBSD-specific per-CPU hook code. */
165+#define FBSD_TARGET_CPU_CPP_BUILTINS() do {} while (0)
166+
167+/* Provide a CPP_SPEC appropriate for FreeBSD. We just deal with the GCC
168+ option `-posix', and PIC issues. */
169+
170+#define FBSD_CPP_SPEC " \
171+ %(cpp_cpu) \
172+ %(cpp_arch) \
173+ %{posix:-D_POSIX_SOURCE}"
174+
175+/* Provide a STARTFILE_SPEC appropriate for FreeBSD. Here we add
176+ the magical crtbegin.o file (see crtstuff.c) which provides part
177+ of the support for getting C++ file-scope static object constructed
178+ before entering `main'. */
179+
180+#define FBSD_STARTFILE_SPEC \
181+ "%{!shared: \
182+ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
183+ %{!p:%{profile:gcrt1.o%s} \
184+ %{!profile: \
185+ %{pie: Scrt1.o%s;:crt1.o%s}}}}} \
186+ crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
187+
188+/* Provide a ENDFILE_SPEC appropriate for FreeBSD. Here we tack on
189+ the magical crtend.o file (see crtstuff.c) which provides part of
190+ the support for getting C++ file-scope static object constructed
191+ before entering `main', followed by a normal "finalizer" file,
192+ `crtn.o'. */
193+
194+#define FBSD_ENDFILE_SPEC \
195+ "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
196+
197+/* Provide a LIB_SPEC appropriate for FreeBSD as configured and as
198+ required by the user-land thread model. Before __FreeBSD_version
199+ 500016, select the appropriate libc, depending on whether we're
200+ doing profiling or need threads support. At __FreeBSD_version
201+ 500016 and later, when threads support is requested include both
202+ -lc and the threading lib instead of only -lc_r. To make matters
203+ interesting, we can't actually use __FreeBSD_version provided by
204+ <osreldate.h> directly since it breaks cross-compiling. As a final
205+ twist, make it a hard error if -pthread is provided on the command
206+ line and gcc was configured with --disable-threads (this will help
207+ avoid bug reports from users complaining about threading when they
208+ misconfigured the gcc bootstrap but are later consulting FreeBSD
209+ manual pages that refer to the mythical -pthread option). */
210+
211+/* Provide a LIB_SPEC appropriate for FreeBSD. Just select the appropriate
212+ libc, depending on whether we're doing profiling or need threads support.
213+ (similar to the default, except no -lg, and no -p). */
214+
215+#ifdef FBSD_NO_THREADS
216+#define FBSD_LIB_SPEC " \
217+ %{pthread: %eThe -pthread option is only supported on FreeBSD when gcc \
218+is built with the --enable-threads configure-time option.} \
219+ %{!shared: \
220+ %{!pg: -lc} \
221+ %{pg: -lc_p} \
222+ }"
223+#else
224+#if FBSD_MAJOR < 5
225+#define FBSD_LIB_SPEC " \
226+ %{!shared: \
227+ %{!pg: \
228+ %{!pthread:-lc} \
229+ %{pthread:-lc_r}} \
230+ %{pg: \
231+ %{!pthread:-lc_p} \
232+ %{pthread:-lc_r_p}} \
233+ }"
234+#else
235+#define FBSD_LIB_SPEC " \
236+ %{!shared: \
237+ %{!pg: %{pthread:-lpthread} -lc} \
238+ %{pg: %{pthread:-lpthread_p} -lc_p} \
239+ } \
240+ %{shared: \
241+ %{pthread:-lpthread} -lc \
242+ }"
243+#endif
244+#endif
245+
246+#if FBSD_MAJOR < 6
247+#define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
248+#else
249+#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
250+#endif
251+
252+/* NOTE: The freebsd-spec.h header is included also for various
253+ non-FreeBSD powerpc targets, thus it should never define macros
254+ other than FBSD_* prefixed ones, or USING_CONFIG_FREEBSD_SPEC. */
255diff -Naur gcc-5.2.0.orig/gcc/config/frv/linux.h gcc-5.2.0/gcc/config/frv/linux.h
256--- gcc-5.2.0.orig/gcc/config/frv/linux.h 2015-01-05 12:33:28.000000000 +0000
257+++ gcc-5.2.0/gcc/config/frv/linux.h 2015-08-16 03:06:42.661478408 +0000
258@@ -34,7 +34,7 @@
259 #define ENDFILE_SPEC \
260 "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
261
262-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
263+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
264
265 #undef LINK_SPEC
266 #define LINK_SPEC "\
267diff -Naur gcc-5.2.0.orig/gcc/config/i386/gnu.h gcc-5.2.0/gcc/config/i386/gnu.h
268--- gcc-5.2.0.orig/gcc/config/i386/gnu.h 2015-01-05 12:33:28.000000000 +0000
269+++ gcc-5.2.0/gcc/config/i386/gnu.h 2015-08-16 03:06:42.661478408 +0000
270@@ -22,7 +22,7 @@
271 #define GNU_USER_LINK_EMULATION "elf_i386"
272
273 #undef GNU_USER_DYNAMIC_LINKER
274-#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so"
275+#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so"
276
277 #undef STARTFILE_SPEC
278 #if defined HAVE_LD_PIE
279diff -Naur gcc-5.2.0.orig/gcc/config/i386/kfreebsd-gnu.h gcc-5.2.0/gcc/config/i386/kfreebsd-gnu.h
280--- gcc-5.2.0.orig/gcc/config/i386/kfreebsd-gnu.h 2015-01-05 12:33:28.000000000 +0000
281+++ gcc-5.2.0/gcc/config/i386/kfreebsd-gnu.h 2015-08-16 03:06:42.661478408 +0000
282@@ -19,4 +19,4 @@
283 <http://www.gnu.org/licenses/>. */
284
285 #define GNU_USER_LINK_EMULATION "elf_i386_fbsd"
286-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
287+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
288diff -Naur gcc-5.2.0.orig/gcc/config/i386/kfreebsd-gnu64.h gcc-5.2.0/gcc/config/i386/kfreebsd-gnu64.h
289--- gcc-5.2.0.orig/gcc/config/i386/kfreebsd-gnu64.h 2015-01-05 12:33:28.000000000 +0000
290+++ gcc-5.2.0/gcc/config/i386/kfreebsd-gnu64.h 2015-08-16 03:06:42.661478408 +0000
291@@ -22,6 +22,6 @@
292 #define GNU_USER_LINK_EMULATION64 "elf_x86_64_fbsd"
293 #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64_fbsd"
294
295-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
296-#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-kfreebsd-x86-64.so.1"
297-#define GLIBC_DYNAMIC_LINKERX32 "/lib/ld-kfreebsd-x32.so.1"
298+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
299+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-kfreebsd-x86-64.so.1"
300+#define GLIBC_DYNAMIC_LINKERX32 "/tools/lib/ld-kfreebsd-x32.so.1"
301diff -Naur gcc-5.2.0.orig/gcc/config/i386/linux.h gcc-5.2.0/gcc/config/i386/linux.h
302--- gcc-5.2.0.orig/gcc/config/i386/linux.h 2015-01-05 12:33:28.000000000 +0000
303+++ gcc-5.2.0/gcc/config/i386/linux.h 2015-08-16 03:06:42.661478408 +0000
304@@ -20,4 +20,4 @@
305 <http://www.gnu.org/licenses/>. */
306
307 #define GNU_USER_LINK_EMULATION "elf_i386"
308-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
309+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
310diff -Naur gcc-5.2.0.orig/gcc/config/i386/linux64.h gcc-5.2.0/gcc/config/i386/linux64.h
311--- gcc-5.2.0.orig/gcc/config/i386/linux64.h 2015-01-05 12:33:28.000000000 +0000
312+++ gcc-5.2.0/gcc/config/i386/linux64.h 2015-08-16 03:06:42.661478408 +0000
313@@ -27,6 +27,6 @@
314 #define GNU_USER_LINK_EMULATION64 "elf_x86_64"
315 #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64"
316
317-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
318-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
319-#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
320+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-linux.so.2"
321+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-linux-x86-64.so.2"
322+#define GLIBC_DYNAMIC_LINKERX32 "/tools/libx32/ld-linux-x32.so.2"
323diff -Naur gcc-5.2.0.orig/gcc/config/i386/t-linux64 gcc-5.2.0/gcc/config/i386/t-linux64
324--- gcc-5.2.0.orig/gcc/config/i386/t-linux64 2015-01-05 12:33:28.000000000 +0000
325+++ gcc-5.2.0/gcc/config/i386/t-linux64 2015-08-16 03:06:42.661478408 +0000
326@@ -33,6 +33,6 @@
327 comma=,
328 MULTILIB_OPTIONS = $(subst $(comma),/,$(TM_MULTILIB_CONFIG))
329 MULTILIB_DIRNAMES = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS)))
330-MULTILIB_OSDIRNAMES = m64=../lib64$(call if_multiarch,:x86_64-linux-gnu)
331-MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-linux-gnu)
332+MULTILIB_OSDIRNAMES = m64=../lib$(call if_multiarch,:x86_64-linux-gnu)
333+MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib32)$(call if_multiarch,:i386-linux-gnu)
334 MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
335diff -Naur gcc-5.2.0.orig/gcc/config/ia64/linux.h gcc-5.2.0/gcc/config/ia64/linux.h
336--- gcc-5.2.0.orig/gcc/config/ia64/linux.h 2015-01-05 12:33:28.000000000 +0000
337+++ gcc-5.2.0/gcc/config/ia64/linux.h 2015-08-16 03:06:42.661478408 +0000
338@@ -55,7 +55,7 @@
339 /* Define this for shared library support because it isn't in the main
340 linux.h file. */
341
342-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
343+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-ia64.so.2"
344
345 #undef LINK_SPEC
346 #define LINK_SPEC "\
347diff -Naur gcc-5.2.0.orig/gcc/config/knetbsd-gnu.h gcc-5.2.0/gcc/config/knetbsd-gnu.h
348--- gcc-5.2.0.orig/gcc/config/knetbsd-gnu.h 2015-01-05 12:33:28.000000000 +0000
349+++ gcc-5.2.0/gcc/config/knetbsd-gnu.h 2015-08-16 03:06:42.661478408 +0000
350@@ -32,4 +32,4 @@
351
352
353 #undef GNU_USER_DYNAMIC_LINKER
354-#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
355+#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so.1"
356diff -Naur gcc-5.2.0.orig/gcc/config/kopensolaris-gnu.h gcc-5.2.0/gcc/config/kopensolaris-gnu.h
357--- gcc-5.2.0.orig/gcc/config/kopensolaris-gnu.h 2015-01-05 12:33:28.000000000 +0000
358+++ gcc-5.2.0/gcc/config/kopensolaris-gnu.h 2015-08-16 03:06:42.661478408 +0000
359@@ -31,4 +31,4 @@
360 while (0)
361
362 #undef GNU_USER_DYNAMIC_LINKER
363-#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
364+#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so.1"
365diff -Naur gcc-5.2.0.orig/gcc/config/linux.h gcc-5.2.0/gcc/config/linux.h
366--- gcc-5.2.0.orig/gcc/config/linux.h 2015-01-05 12:33:28.000000000 +0000
367+++ gcc-5.2.0/gcc/config/linux.h 2015-08-16 03:06:42.661478408 +0000
368@@ -73,10 +73,10 @@
369 GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
370 GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
371 supporting both 32-bit and 64-bit compilation. */
372-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
373-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
374-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
375-#define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0"
376+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
377+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
378+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
379+#define UCLIBC_DYNAMIC_LINKERX32 "/tools/lib/ldx32-uClibc.so.0"
380 #define BIONIC_DYNAMIC_LINKER "/system/bin/linker"
381 #define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker"
382 #define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64"
383diff -Naur gcc-5.2.0.orig/gcc/config/lm32/uclinux-elf.h gcc-5.2.0/gcc/config/lm32/uclinux-elf.h
384--- gcc-5.2.0.orig/gcc/config/lm32/uclinux-elf.h 2015-01-05 12:33:28.000000000 +0000
385+++ gcc-5.2.0/gcc/config/lm32/uclinux-elf.h 2015-08-16 03:06:42.661478408 +0000
386@@ -67,7 +67,7 @@
387 %{shared:-shared} \
388 %{symbolic:-Bsymbolic} \
389 %{rdynamic:-export-dynamic} \
390- -dynamic-linker /lib/ld-linux.so.2"
391+ -dynamic-linker /tools/lib/ld-linux.so.2"
392
393 #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
394
395diff -Naur gcc-5.2.0.orig/gcc/config/m32r/linux.h gcc-5.2.0/gcc/config/m32r/linux.h
396--- gcc-5.2.0.orig/gcc/config/m32r/linux.h 2015-01-05 12:33:28.000000000 +0000
397+++ gcc-5.2.0/gcc/config/m32r/linux.h 2015-08-16 03:06:42.661478408 +0000
398@@ -37,7 +37,7 @@
399 When the -shared link option is used a final link is not being
400 done. */
401
402-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
403+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
404
405 #undef LINK_SPEC
406 #if TARGET_LITTLE_ENDIAN
407diff -Naur gcc-5.2.0.orig/gcc/config/m68k/linux.h gcc-5.2.0/gcc/config/m68k/linux.h
408--- gcc-5.2.0.orig/gcc/config/m68k/linux.h 2015-01-05 12:33:28.000000000 +0000
409+++ gcc-5.2.0/gcc/config/m68k/linux.h 2015-08-16 03:06:42.661478408 +0000
410@@ -71,7 +71,7 @@
411 When the -shared link option is used a final link is not being
412 done. */
413
414-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
415+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
416
417 #undef LINK_SPEC
418 #define LINK_SPEC "-m m68kelf %{shared} \
419diff -Naur gcc-5.2.0.orig/gcc/config/microblaze/linux.h gcc-5.2.0/gcc/config/microblaze/linux.h
420--- gcc-5.2.0.orig/gcc/config/microblaze/linux.h 2015-05-28 14:08:19.000000000 +0000
421+++ gcc-5.2.0/gcc/config/microblaze/linux.h 2015-08-16 03:06:42.661478408 +0000
422@@ -28,7 +28,7 @@
423 #undef TLS_NEEDS_GOT
424 #define TLS_NEEDS_GOT 1
425
426-#define DYNAMIC_LINKER "/lib/ld.so.1"
427+#define DYNAMIC_LINKER "/tools/lib/ld.so.1"
428 #undef SUBTARGET_EXTRA_SPECS
429 #define SUBTARGET_EXTRA_SPECS \
430 { "dynamic_linker", DYNAMIC_LINKER }
431diff -Naur gcc-5.2.0.orig/gcc/config/microblaze/linux.h.orig gcc-5.2.0/gcc/config/microblaze/linux.h.orig
432--- gcc-5.2.0.orig/gcc/config/microblaze/linux.h.orig 1970-01-01 00:00:00.000000000 +0000
433+++ gcc-5.2.0/gcc/config/microblaze/linux.h.orig 2015-05-28 14:08:19.000000000 +0000
434@@ -0,0 +1,48 @@
435+/* Definitions for MicroBlaze running Linux.
436+ Copyright (C) 2009-2015 Free Software Foundation, Inc.
437+
438+ This file is part of GCC.
439+
440+ Contributed by Michael Eager <eager@eagercon.com>.
441+
442+ GCC is free software; you can redistribute it and/or modify
443+ it under the terms of the GNU General Public License as published by
444+ the Free Software Foundation; either version 3, or (at your option)
445+ any later version.
446+
447+ GCC is distributed in the hope that it will be useful,
448+ but WITHOUT ANY WARRANTY; without even the implied warranty of
449+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
450+ GNU General Public License for more details.
451+
452+ You should have received a copy of the GNU General Public License
453+ along with GCC; see the file COPYING3. If not see
454+ <http://www.gnu.org/licenses/>. */
455+
456+#undef TARGET_SUPPORTS_PIC
457+#define TARGET_SUPPORTS_PIC 1
458+
459+#undef CPP_SPEC
460+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
461+
462+#undef TLS_NEEDS_GOT
463+#define TLS_NEEDS_GOT 1
464+
465+#define DYNAMIC_LINKER "/lib/ld.so.1"
466+#undef SUBTARGET_EXTRA_SPECS
467+#define SUBTARGET_EXTRA_SPECS \
468+ { "dynamic_linker", DYNAMIC_LINKER }
469+
470+#undef LINK_SPEC
471+#define LINK_SPEC "%{shared:-shared} \
472+ %{!shared: \
473+ %{!static: \
474+ %{rdynamic:-export-dynamic} \
475+ -dynamic-linker %(dynamic_linker)} \
476+ %{static:-static}} \
477+ %{mbig-endian:-EB} \
478+ %{mlittle-endian:-EL}"
479+
480+/* For the microblaze-*-linux* subtarget. */
481+#undef TARGET_OS_CPP_BUILTINS
482+#define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
483diff -Naur gcc-5.2.0.orig/gcc/config/mn10300/linux.h gcc-5.2.0/gcc/config/mn10300/linux.h
484--- gcc-5.2.0.orig/gcc/config/mn10300/linux.h 2015-01-05 12:33:28.000000000 +0000
485+++ gcc-5.2.0/gcc/config/mn10300/linux.h 2015-08-16 03:06:42.661478408 +0000
486@@ -32,7 +32,7 @@
487 #undef ASM_SPEC
488 #define ASM_SPEC ""
489
490-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
491+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
492
493 #undef LINK_SPEC
494 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
495diff -Naur gcc-5.2.0.orig/gcc/config/nios2/linux.h gcc-5.2.0/gcc/config/nios2/linux.h
496--- gcc-5.2.0.orig/gcc/config/nios2/linux.h 2015-05-28 14:08:37.000000000 +0000
497+++ gcc-5.2.0/gcc/config/nios2/linux.h 2015-08-16 03:06:42.661478408 +0000
498@@ -29,7 +29,7 @@
499 #undef CPP_SPEC
500 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
501
502-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1"
503+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-nios2.so.1"
504
505 #undef LINK_SPEC
506 #define LINK_SPEC LINK_SPEC_ENDIAN \
507diff -Naur gcc-5.2.0.orig/gcc/config/nios2/linux.h.orig gcc-5.2.0/gcc/config/nios2/linux.h.orig
508--- gcc-5.2.0.orig/gcc/config/nios2/linux.h.orig 1970-01-01 00:00:00.000000000 +0000
509+++ gcc-5.2.0/gcc/config/nios2/linux.h.orig 2015-05-28 14:08:37.000000000 +0000
510@@ -0,0 +1,46 @@
511+/* Definitions of target support for Altera Nios II systems
512+ running GNU/Linux with ELF format.
513+ Copyright (C) 2012-2015 Free Software Foundation, Inc.
514+ Contributed by Mentor Graphics, Inc.
515+
516+ This file is part of GCC.
517+
518+ GCC is free software; you can redistribute it and/or modify it
519+ under the terms of the GNU General Public License as published
520+ by the Free Software Foundation; either version 3, or (at your
521+ option) any later version.
522+
523+ GCC is distributed in the hope that it will be useful, but WITHOUT
524+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
525+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
526+ License for more details.
527+
528+ You should have received a copy of the GNU General Public License
529+ along with GCC; see the file COPYING3. If not see
530+ <http://www.gnu.org/licenses/>. */
531+
532+#define TARGET_OS_CPP_BUILTINS() \
533+ do \
534+ { \
535+ GNU_USER_TARGET_OS_CPP_BUILTINS(); \
536+ } \
537+ while (0)
538+
539+#undef CPP_SPEC
540+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
541+
542+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1"
543+
544+#undef LINK_SPEC
545+#define LINK_SPEC LINK_SPEC_ENDIAN \
546+ "%{shared:-shared} \
547+ %{!shared: \
548+ %{!static: \
549+ %{rdynamic:-export-dynamic} \
550+ -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
551+ %{static:-static}}"
552+
553+/* This toolchain implements the ABI for Linux Systems documented in the
554+ Nios II Processor Reference Handbook. */
555+#define TARGET_LINUX_ABI 1
556+
557diff -Naur gcc-5.2.0.orig/gcc/config/pa/pa-linux.h gcc-5.2.0/gcc/config/pa/pa-linux.h
558--- gcc-5.2.0.orig/gcc/config/pa/pa-linux.h 2015-05-28 14:07:55.000000000 +0000
559+++ gcc-5.2.0/gcc/config/pa/pa-linux.h 2015-08-16 03:06:42.661478408 +0000
560@@ -37,7 +37,7 @@
561 /* Define this for shared library support because it isn't in the main
562 linux.h file. */
563
564-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
565+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
566
567 #undef LINK_SPEC
568 #define LINK_SPEC "\
569diff -Naur gcc-5.2.0.orig/gcc/config/rs6000/linux64.h gcc-5.2.0/gcc/config/rs6000/linux64.h
570--- gcc-5.2.0.orig/gcc/config/rs6000/linux64.h 2015-03-09 23:18:57.000000000 +0000
571+++ gcc-5.2.0/gcc/config/rs6000/linux64.h 2015-08-16 03:06:42.661478408 +0000
572@@ -357,14 +357,14 @@
573 #undef LINK_OS_DEFAULT_SPEC
574 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
575
576-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
577+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
578 #ifdef LINUX64_DEFAULT_ABI_ELFv2
579-#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/lib64/ld64.so.1;:/lib64/ld64.so.2}"
580+#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/tools/lib64/ld64.so.1;:/tools/lib64/ld64.so.2}"
581 #else
582-#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/lib64/ld64.so.2;:/lib64/ld64.so.1}"
583+#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/tools/lib64/ld64.so.2;:/tools/lib64/ld64.so.1}"
584 #endif
585-#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
586-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
587+#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
588+#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
589 #if DEFAULT_LIBC == LIBC_UCLIBC
590 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
591 #elif DEFAULT_LIBC == LIBC_GLIBC
592diff -Naur gcc-5.2.0.orig/gcc/config/rs6000/sysv4.h gcc-5.2.0/gcc/config/rs6000/sysv4.h
593--- gcc-5.2.0.orig/gcc/config/rs6000/sysv4.h 2015-01-05 12:33:28.000000000 +0000
594+++ gcc-5.2.0/gcc/config/rs6000/sysv4.h 2015-08-16 03:06:42.661478408 +0000
595@@ -762,8 +762,8 @@
596
597 #define LINK_START_LINUX_SPEC ""
598
599-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
600-#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
601+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
602+#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
603 #if DEFAULT_LIBC == LIBC_UCLIBC
604 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
605 #elif !defined (DEFAULT_LIBC) || DEFAULT_LIBC == LIBC_GLIBC
606diff -Naur gcc-5.2.0.orig/gcc/config/s390/linux.h gcc-5.2.0/gcc/config/s390/linux.h
607--- gcc-5.2.0.orig/gcc/config/s390/linux.h 2015-05-11 07:14:10.000000000 +0000
608+++ gcc-5.2.0/gcc/config/s390/linux.h 2015-08-16 03:06:42.661478408 +0000
609@@ -60,8 +60,8 @@
610 #define MULTILIB_DEFAULTS { "m31" }
611 #endif
612
613-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
614-#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
615+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
616+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
617
618 #undef LINK_SPEC
619 #define LINK_SPEC \
620diff -Naur gcc-5.2.0.orig/gcc/config/sh/linux.h gcc-5.2.0/gcc/config/sh/linux.h
621--- gcc-5.2.0.orig/gcc/config/sh/linux.h 2015-01-05 12:33:28.000000000 +0000
622+++ gcc-5.2.0/gcc/config/sh/linux.h 2015-08-16 03:06:42.664811503 +0000
623@@ -43,7 +43,7 @@
624
625 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
626
627-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
628+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
629
630 #undef SUBTARGET_LINK_EMUL_SUFFIX
631 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
632diff -Naur gcc-5.2.0.orig/gcc/config/sparc/linux.h gcc-5.2.0/gcc/config/sparc/linux.h
633--- gcc-5.2.0.orig/gcc/config/sparc/linux.h 2015-01-05 12:33:28.000000000 +0000
634+++ gcc-5.2.0/gcc/config/sparc/linux.h 2015-08-16 03:06:42.664811503 +0000
635@@ -83,7 +83,7 @@
636 When the -shared link option is used a final link is not being
637 done. */
638
639-#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
640+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
641
642 #undef LINK_SPEC
643 #define LINK_SPEC "-m elf32_sparc %{shared:-shared} \
644diff -Naur gcc-5.2.0.orig/gcc/config/sparc/linux64.h gcc-5.2.0/gcc/config/sparc/linux64.h
645--- gcc-5.2.0.orig/gcc/config/sparc/linux64.h 2015-01-05 12:33:28.000000000 +0000
646+++ gcc-5.2.0/gcc/config/sparc/linux64.h 2015-08-16 03:06:42.664811503 +0000
647@@ -84,8 +84,8 @@
648 When the -shared link option is used a final link is not being
649 done. */
650
651-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
652-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
653+#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
654+#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
655
656 #ifdef SPARC_BI_ARCH
657
658@@ -193,7 +193,7 @@
659 #else /* !SPARC_BI_ARCH */
660
661 #undef LINK_SPEC
662-#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
663+#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
664 %{!shared: \
665 %{!static: \
666 %{rdynamic:-export-dynamic} \
667diff -Naur gcc-5.2.0.orig/gcc/config/xtensa/linux.h gcc-5.2.0/gcc/config/xtensa/linux.h
668--- gcc-5.2.0.orig/gcc/config/xtensa/linux.h 2015-01-05 12:33:28.000000000 +0000
669+++ gcc-5.2.0/gcc/config/xtensa/linux.h 2015-08-16 03:06:42.664811503 +0000
670@@ -44,7 +44,7 @@
671 %{mlongcalls:--longcalls} \
672 %{mno-longcalls:--no-longcalls}"
673
674-#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
675+#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
676
677 #undef LINK_SPEC
678 #define LINK_SPEC \
Note: See TracBrowser for help on using the repository browser.