source: patches/gcc-5.2.0-pure64_specs-1.patch@ c8c8c51

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