1 |
commit: 27afb80e661ba54a9c71dcb3f52ebe8d46504cc2 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 22 23:45:59 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 22 23:45:59 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=27afb80e |
7 |
|
8 |
8.3.0: cut patchset 1.0 |
9 |
|
10 |
It's a verbatim copy of 8.2.0 patchset with upstreamed patches removed. |
11 |
|
12 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
13 |
|
14 |
8.3.0/gentoo/01_all_default-fortify-source.patch | 22 ++++ |
15 |
.../02_all_default-warn-format-security.patch | 22 ++++ |
16 |
8.3.0/gentoo/03_all_default-warn-trampolines.patch | 13 ++ |
17 |
8.3.0/gentoo/04_all_default-ssp-fix.patch | 38 ++++++ |
18 |
8.3.0/gentoo/05_all_alpha-mieee-default.patch | 39 ++++++ |
19 |
8.3.0/gentoo/06_all_ia64_note.GNU-stack.patch | 92 +++++++++++++ |
20 |
.../gentoo/07_all_i386_libgcc_note.GNU-stack.patch | 54 ++++++++ |
21 |
8.3.0/gentoo/08_all_libiberty-asprintf.patch | 18 +++ |
22 |
8.3.0/gentoo/09_all_libiberty-pic.patch | 10 ++ |
23 |
8.3.0/gentoo/10_all_nopie-all-flags.patch | 18 +++ |
24 |
8.3.0/gentoo/11_all_extra-options.patch | 89 +++++++++++++ |
25 |
.../12_all_pr55930-dependency-tracking.patch | 18 +++ |
26 |
8.3.0/gentoo/13_all_sh-drop-sysroot-suffix.patch | 32 +++++ |
27 |
8.3.0/gentoo/14_all_ia64-TEXTREL.patch | 22 ++++ |
28 |
8.3.0/gentoo/15_all_disable-systemtap-switch.patch | 142 +++++++++++++++++++++ |
29 |
8.3.0/gentoo/16_all_sh_textrel-on-libitm.patch | 41 ++++++ |
30 |
8.3.0/gentoo/17_all_m68k-textrel-on-libgcc.patch | 93 ++++++++++++++ |
31 |
8.3.0/gentoo/18_all_respect-build-cxxflags.patch | 39 ++++++ |
32 |
8.3.0/gentoo/19_all_libgfortran-Werror.patch | 20 +++ |
33 |
8.3.0/gentoo/20_all_libgomp-Werror.patch | 20 +++ |
34 |
8.3.0/gentoo/21_all_libitm-Werror.patch | 19 +++ |
35 |
8.3.0/gentoo/22_all_libatomic-Werror.patch | 19 +++ |
36 |
8.3.0/gentoo/23_all_libbacktrace-Werror.patch | 17 +++ |
37 |
8.3.0/gentoo/24_all_libsanitizer-Werror.patch | 17 +++ |
38 |
8.3.0/gentoo/25_all_libstdcxx-no-vtv.patch | 61 +++++++++ |
39 |
8.3.0/gentoo/README.history | 26 ++++ |
40 |
26 files changed, 1001 insertions(+) |
41 |
|
42 |
diff --git a/8.3.0/gentoo/01_all_default-fortify-source.patch b/8.3.0/gentoo/01_all_default-fortify-source.patch |
43 |
new file mode 100644 |
44 |
index 0000000..d307474 |
45 |
--- /dev/null |
46 |
+++ b/8.3.0/gentoo/01_all_default-fortify-source.patch |
47 |
@@ -0,0 +1,22 @@ |
48 |
+Taken Debian's patch and removed docs matches: |
49 |
+ https://salsa.debian.org/toolchain-team/gcc.git |
50 |
+Also see https://bugs.gentoo.org/621036 where |
51 |
+initially Gentoo used too complicated macro. |
52 |
+ |
53 |
+# DP: Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, |
54 |
+# DP: if the optimization level is > 0 |
55 |
+--- a/gcc/c-family/c-cppbuiltin.c |
56 |
++++ b/gcc/c-family/c-cppbuiltin.c |
57 |
+@@ -951,6 +951,12 @@ c_cpp_builtins (cpp_reader *pfile) |
58 |
+ builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0); |
59 |
+ builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0); |
60 |
+ |
61 |
++#if !defined(ACCEL_COMPILER) |
62 |
++ /* Fortify Source enabled by default for optimization levels > 0 */ |
63 |
++ if (optimize) |
64 |
++ builtin_define_with_int_value ("_FORTIFY_SOURCE", 2); |
65 |
++#endif |
66 |
++ |
67 |
+ /* Misc. */ |
68 |
+ if (flag_gnu89_inline) |
69 |
+ cpp_define (pfile, "__GNUC_GNU_INLINE__"); |
70 |
|
71 |
diff --git a/8.3.0/gentoo/02_all_default-warn-format-security.patch b/8.3.0/gentoo/02_all_default-warn-format-security.patch |
72 |
new file mode 100644 |
73 |
index 0000000..f809abd |
74 |
--- /dev/null |
75 |
+++ b/8.3.0/gentoo/02_all_default-warn-format-security.patch |
76 |
@@ -0,0 +1,22 @@ |
77 |
+Enable -Wformat and -Wformat-security by default. |
78 |
+ |
79 |
+--- a/gcc/c-family/c.opt 2016-03-23 18:51:56.000000000 +0100 |
80 |
++++ b/gcc/c-family/c.opt 2016-04-28 23:45:54.063351272 +0200 |
81 |
+@@ -459,7 +459,7 @@ C ObjC C++ ObjC++ Var(warn_format_nonlit |
82 |
+ Warn about format strings that are not literals. |
83 |
+ |
84 |
+ Wformat-security |
85 |
+-C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) |
86 |
++C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) |
87 |
+ Warn about possible security problems with format functions. |
88 |
+ |
89 |
+ Wformat-signedness |
90 |
+@@ -475,7 +475,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_l |
91 |
+ Warn about zero-length formats. |
92 |
+ |
93 |
+ Wformat= |
94 |
+-C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2) |
95 |
++C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2) |
96 |
+ Warn about printf/scanf/strftime/strfmon format string anomalies. |
97 |
+ |
98 |
+ Wignored-qualifiers |
99 |
|
100 |
diff --git a/8.3.0/gentoo/03_all_default-warn-trampolines.patch b/8.3.0/gentoo/03_all_default-warn-trampolines.patch |
101 |
new file mode 100644 |
102 |
index 0000000..7a644cb |
103 |
--- /dev/null |
104 |
+++ b/8.3.0/gentoo/03_all_default-warn-trampolines.patch |
105 |
@@ -0,0 +1,13 @@ |
106 |
+Enable -Wtrampolines by default. |
107 |
+ |
108 |
+--- a/gcc/common.opt |
109 |
++++ b/gcc/common.opt |
110 |
+@@ -712,7 +712,7 @@ Common Var(warn_system_headers) Warning |
111 |
+ Do not suppress warnings from system headers. |
112 |
+ |
113 |
+ Wtrampolines |
114 |
+-Common Var(warn_trampolines) Warning |
115 |
++Common Var(warn_trampolines) Init(1) Warning |
116 |
+ Warn whenever a trampoline is generated. |
117 |
+ |
118 |
+ Wtype-limits |
119 |
|
120 |
diff --git a/8.3.0/gentoo/04_all_default-ssp-fix.patch b/8.3.0/gentoo/04_all_default-ssp-fix.patch |
121 |
new file mode 100644 |
122 |
index 0000000..d2deac7 |
123 |
--- /dev/null |
124 |
+++ b/8.3.0/gentoo/04_all_default-ssp-fix.patch |
125 |
@@ -0,0 +1,38 @@ |
126 |
+Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding |
127 |
+Change the buffer size. |
128 |
+ |
129 |
+--- a/gcc/gcc.c 2017-07-04 09:15:57.740793000 +0200 |
130 |
++++ b/gcc/gcc.c 2018-03-02 13:58:44.387741114 +0100 |
131 |
+@@ -857,6 +857,12 @@ proper position among the other output f |
132 |
+ #define LINK_GCC_C_SEQUENCE_SPEC "%G %L %G" |
133 |
+ #endif |
134 |
+ |
135 |
++#ifdef ENABLE_DEFAULT_SSP |
136 |
++#define NO_SSP_SPEC "%{nostdlib|nodefaultlibs|ffreestanding:-fno-stack-protector} " |
137 |
++#else |
138 |
++#define NO_SSP_SPEC "" |
139 |
++#endif |
140 |
++ |
141 |
+ #ifndef LINK_SSP_SPEC |
142 |
+ #ifdef TARGET_LIBC_PROVIDES_SSP |
143 |
+ #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ |
144 |
+@@ -1131,7 +1148,7 @@ static const char *cc1_options = |
145 |
+ %{-version:--version}\ |
146 |
+ %{-help=*:--help=%*}\ |
147 |
+ %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\ |
148 |
+- %{fsyntax-only:-o %j} %{-param*}\ |
149 |
++ %{fsyntax-only:-o %j} %{-param*} " NO_SSP_SPEC "\ |
150 |
+ %{coverage:-fprofile-arcs -ftest-coverage}\ |
151 |
+ %{fprofile-arcs|fprofile-generate*|coverage:\ |
152 |
+ %{!fprofile-update=singel:\ |
153 |
+--- a/gcc/params.def 2016-03-30 09:47:40.000000000 +0200 |
154 |
++++ b/gcc/params.def 2016-09-19 12:56:58.443179039 +0200 |
155 |
+@@ -673,7 +673,7 @@ DEFPARAM (PARAM_INTEGER_SHARE_LIMIT, |
156 |
+ DEFPARAM (PARAM_SSP_BUFFER_SIZE, |
157 |
+ "ssp-buffer-size", |
158 |
+ "The lower bound for a buffer to be considered for stack smashing protection.", |
159 |
+- 8, 1, 0) |
160 |
++ 4, 1, 0) |
161 |
+ |
162 |
+ DEFPARAM (PARAM_MIN_SIZE_FOR_STACK_SHARING, |
163 |
+ "min-size-for-stack-sharing", |
164 |
|
165 |
diff --git a/8.3.0/gentoo/05_all_alpha-mieee-default.patch b/8.3.0/gentoo/05_all_alpha-mieee-default.patch |
166 |
new file mode 100644 |
167 |
index 0000000..b266d77 |
168 |
--- /dev/null |
169 |
+++ b/8.3.0/gentoo/05_all_alpha-mieee-default.patch |
170 |
@@ -0,0 +1,39 @@ |
171 |
+Set the default behavior on alpha to use -mieee since the large majority of |
172 |
+time we want this (bad/weird things can happen with packages built without |
173 |
+it). |
174 |
+ |
175 |
+To satisfy those people who may not want -mieee forced on them all the time, |
176 |
+we also provide -mno-ieee. |
177 |
+ |
178 |
+Patch by Mike Frysinger <vapier@g.o> |
179 |
+ |
180 |
+Note: upstream doesn't want to take this due to long standing behavior, and |
181 |
+because it'd make behavior across OS's inconsistent: |
182 |
+ https://gcc.gnu.org/ml/gcc-patches/2003-07/msg02144.html |
183 |
+ |
184 |
+This makes sense for upstream, but Gentoo is more concerned about packages |
185 |
+behaving the same across arches under Linux. |
186 |
+ |
187 |
+--- a/gcc/config/alpha/alpha.h |
188 |
++++ b/gcc/config/alpha/alpha.h |
189 |
+@@ -96,6 +96,8 @@ along with GCC; see the file COPYING3. If not see |
190 |
+ while (0) |
191 |
+ #endif |
192 |
+ |
193 |
++#define CPP_SPEC "%{!no-ieee:-mieee}" |
194 |
++ |
195 |
+ /* Run-time compilation parameters selecting different hardware subsets. */ |
196 |
+ |
197 |
+ /* Which processor to schedule for. The cpu attribute defines a list that |
198 |
+--- a/gcc/config/alpha/alpha.opt |
199 |
++++ b/gcc/config/alpha/alpha.opt |
200 |
+@@ -35,7 +35,7 @@ |
201 |
+ Request IEEE-conformant math library routines (OSF/1). |
202 |
+ |
203 |
+ mieee |
204 |
+-Target Report RejectNegative Mask(IEEE) |
205 |
++Target Report Mask(IEEE) |
206 |
+ Emit IEEE-conformant code, without inexact exceptions. |
207 |
+ |
208 |
+ mieee-with-inexact |
209 |
+ |
210 |
|
211 |
diff --git a/8.3.0/gentoo/06_all_ia64_note.GNU-stack.patch b/8.3.0/gentoo/06_all_ia64_note.GNU-stack.patch |
212 |
new file mode 100644 |
213 |
index 0000000..66a787e |
214 |
--- /dev/null |
215 |
+++ b/8.3.0/gentoo/06_all_ia64_note.GNU-stack.patch |
216 |
@@ -0,0 +1,92 @@ |
217 |
+http://gcc.gnu.org/PR21098 |
218 |
+ |
219 |
+ |
220 |
+2004-09-20 Jakub Jelinek <jakub@××××××.com> |
221 |
+ |
222 |
+ * config/rs6000/ppc-asm.h: Add .note.GNU-stack section also |
223 |
+ on ppc64-linux. |
224 |
+ |
225 |
+ * config/ia64/lib1funcs.asm: Add .note.GNU-stack section on |
226 |
+ ia64-linux. |
227 |
+ * config/ia64/crtbegin.asm: Likewise. |
228 |
+ * config/ia64/crtend.asm: Likewise. |
229 |
+ * config/ia64/crti.asm: Likewise. |
230 |
+ * config/ia64/crtn.asm: Likewise. |
231 |
+ |
232 |
+2004-05-14 Jakub Jelinek <jakub@××××××.com> |
233 |
+ |
234 |
+ * config/ia64/linux.h (TARGET_ASM_FILE_END): Define. |
235 |
+ |
236 |
+ |
237 |
+--- a/gcc/config/ia64/linux.h |
238 |
++++ b/gcc/config/ia64/linux.h |
239 |
+@@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; |
240 |
+ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
241 |
+ <http://www.gnu.org/licenses/>. */ |
242 |
+ |
243 |
++#define TARGET_ASM_FILE_END file_end_indicate_exec_stack |
244 |
++ |
245 |
+ /* This is for -profile to use -lc_p instead of -lc. */ |
246 |
+ #undef CC1_SPEC |
247 |
+ #define CC1_SPEC "%{profile:-p} %{G*}" |
248 |
+--- a/gcc/config/rs6000/ppc-asm.h |
249 |
++++ b/gcc/config/rs6000/ppc-asm.h |
250 |
+@@ -352,7 +352,7 @@ GLUE(.L,name): \ |
251 |
+ #endif |
252 |
+ #endif |
253 |
+ |
254 |
+-#if defined __linux__ && !defined __powerpc64__ |
255 |
++#if defined __linux__ |
256 |
+ .section .note.GNU-stack |
257 |
+ .previous |
258 |
+ #endif |
259 |
+--- a/libgcc/config/ia64/crtbegin.S |
260 |
++++ b/libgcc/config/ia64/crtbegin.S |
261 |
+@@ -252,3 +252,7 @@ __do_jv_register_classes: |
262 |
+ .weak __cxa_finalize |
263 |
+ #endif |
264 |
+ .weak _Jv_RegisterClasses |
265 |
++ |
266 |
++#ifdef __linux__ |
267 |
++.section .note.GNU-stack; .previous |
268 |
++#endif |
269 |
+--- a/libgcc/config/ia64/crtend.S |
270 |
++++ b/libgcc/config/ia64/crtend.S |
271 |
+@@ -119,3 +119,6 @@ __do_global_ctors_aux: |
272 |
+ |
273 |
+ br.ret.sptk.many rp |
274 |
+ .endp __do_global_ctors_aux |
275 |
++#ifdef __linux__ |
276 |
++.section .note.GNU-stack; .previous |
277 |
++#endif |
278 |
+--- a/libgcc/config/ia64/crti.S |
279 |
++++ b/libgcc/config/ia64/crti.S |
280 |
+@@ -49,5 +49,8 @@ _fini: |
281 |
+ .save rp, r33 |
282 |
+ mov r33 = b0 |
283 |
+ .body |
284 |
++#ifdef __linux__ |
285 |
++.section .note.GNU-stack; .previous |
286 |
++#endif |
287 |
+ |
288 |
+ # end of crti.S |
289 |
+--- a/libgcc/config/ia64/crtn.S |
290 |
++++ b/libgcc/config/ia64/crtn.S |
291 |
+@@ -39,5 +39,8 @@ |
292 |
+ .restore sp |
293 |
+ mov r12 = r35 |
294 |
+ br.ret.sptk.many b0 |
295 |
++#ifdef __linux__ |
296 |
++.section .note.GNU-stack; .previous |
297 |
++#endif |
298 |
+ |
299 |
+ # end of crtn.S |
300 |
+--- a/libgcc/config/ia64/lib1funcs.S |
301 |
++++ b/libgcc/config/ia64/lib1funcs.S |
302 |
+@@ -793,3 +793,6 @@ __floattitf: |
303 |
+ .endp __floattitf |
304 |
+ #endif |
305 |
+ #endif |
306 |
++#ifdef __linux__ |
307 |
++.section .note.GNU-stack; .previous |
308 |
++#endif |
309 |
|
310 |
diff --git a/8.3.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch b/8.3.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch |
311 |
new file mode 100644 |
312 |
index 0000000..7f74945 |
313 |
--- /dev/null |
314 |
+++ b/8.3.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch |
315 |
@@ -0,0 +1,54 @@ |
316 |
+--- a/libgcc/config/i386/resms64.h 2018-01-03 11:03:58.000000000 +0100 |
317 |
++++ b/libgcc/config/i386/resms64.h 2018-05-01 12:59:48.942833419 +0200 |
318 |
+@@ -57,3 +57,6 @@ MS2SYSV_STUB_END(resms64_17) |
319 |
+ MS2SYSV_STUB_END(resms64_18) |
320 |
+ |
321 |
+ #endif /* __x86_64__ */ |
322 |
++#if defined(__linux__) && defined(__ELF__) |
323 |
++.section .note.GNU-stack,"",%progbits |
324 |
++#endif |
325 |
+--- a/libgcc/config/i386/resms64f.h 2018-01-03 11:03:58.000000000 +0100 |
326 |
++++ b/libgcc/config/i386/resms64f.h 2018-05-01 13:00:23.422832853 +0200 |
327 |
+@@ -55,3 +55,6 @@ MS2SYSV_STUB_END(resms64f_16) |
328 |
+ MS2SYSV_STUB_END(resms64f_17) |
329 |
+ |
330 |
+ #endif /* __x86_64__ */ |
331 |
++#if defined(__linux__) && defined(__ELF__) |
332 |
++.section .note.GNU-stack,"",%progbits |
333 |
++#endif |
334 |
+--- a/libgcc/config/i386/resms64fx.h 2018-02-26 20:46:34.000000000 +0100 |
335 |
++++ b/libgcc/config/i386/resms64fx.h 2018-05-01 13:06:49.682826518 +0200 |
336 |
+@@ -62,3 +62,6 @@ MS2SYSV_STUB_END(resms64fx_16) |
337 |
+ MS2SYSV_STUB_END(resms64fx_17) |
338 |
+ |
339 |
+ #endif /* __x86_64__ */ |
340 |
++#if defined(__linux__) && defined(__ELF__) |
341 |
++.section .note.GNU-stack,"",%progbits |
342 |
++#endif |
343 |
+--- a/libgcc/config/i386/resms64x.h 2018-02-26 20:46:34.000000000 +0100 |
344 |
++++ b/libgcc/config/i386/resms64x.h 2018-05-01 13:07:21.702825993 +0200 |
345 |
+@@ -63,3 +63,6 @@ MS2SYSV_STUB_END(resms64x_17) |
346 |
+ MS2SYSV_STUB_END(resms64x_18) |
347 |
+ |
348 |
+ #endif /* __x86_64__ */ |
349 |
++#if defined(__linux__) && defined(__ELF__) |
350 |
++.section .note.GNU-stack,"",%progbits |
351 |
++#endif |
352 |
+--- a/libgcc/config/i386/savms64.h 2018-01-03 11:03:58.000000000 +0100 |
353 |
++++ b/libgcc/config/i386/savms64.h 2018-05-01 13:07:48.952825546 +0200 |
354 |
+@@ -57,3 +57,6 @@ MS2SYSV_STUB_END(savms64_17) |
355 |
+ MS2SYSV_STUB_END(savms64_18) |
356 |
+ |
357 |
+ #endif /* __x86_64__ */ |
358 |
++#if defined(__linux__) && defined(__ELF__) |
359 |
++.section .note.GNU-stack,"",%progbits |
360 |
++#endif |
361 |
+--- a/libgcc/config/i386/savms64f.h 2018-01-03 11:03:58.000000000 +0100 |
362 |
++++ b/libgcc/config/i386/savms64f.h 2018-05-01 13:08:30.082824871 +0200 |
363 |
+@@ -55,3 +55,6 @@ MS2SYSV_STUB_END(savms64f_16) |
364 |
+ MS2SYSV_STUB_END(savms64f_17) |
365 |
+ |
366 |
+ #endif /* __x86_64__ */ |
367 |
++#if defined(__linux__) && defined(__ELF__) |
368 |
++.section .note.GNU-stack,"",%progbits |
369 |
++#endif |
370 |
|
371 |
diff --git a/8.3.0/gentoo/08_all_libiberty-asprintf.patch b/8.3.0/gentoo/08_all_libiberty-asprintf.patch |
372 |
new file mode 100644 |
373 |
index 0000000..bee0c4c |
374 |
--- /dev/null |
375 |
+++ b/8.3.0/gentoo/08_all_libiberty-asprintf.patch |
376 |
@@ -0,0 +1,18 @@ |
377 |
+2008-07-25 Magnus Granberg <zorry@×××.nu> |
378 |
+ |
379 |
+ * include/libiberty.h (asprintf): Don't declare if defined as a macro |
380 |
+ |
381 |
+--- a/include/libiberty.h |
382 |
++++ b/include/libiberty.h |
383 |
+@@ -609,8 +609,11 @@ extern int pwait (int, int *, int); |
384 |
+ /* Like sprintf but provides a pointer to malloc'd storage, which must |
385 |
+ be freed by the caller. */ |
386 |
+ |
387 |
++/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */ |
388 |
++#ifndef asprintf |
389 |
+ extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2; |
390 |
+ #endif |
391 |
++#endif |
392 |
+ |
393 |
+ #if !HAVE_DECL_VASPRINTF |
394 |
+ /* Like vsprintf but provides a pointer to malloc'd storage, which |
395 |
|
396 |
diff --git a/8.3.0/gentoo/09_all_libiberty-pic.patch b/8.3.0/gentoo/09_all_libiberty-pic.patch |
397 |
new file mode 100644 |
398 |
index 0000000..b6160a7 |
399 |
--- /dev/null |
400 |
+++ b/8.3.0/gentoo/09_all_libiberty-pic.patch |
401 |
@@ -0,0 +1,10 @@ |
402 |
+--- a/libiberty/Makefile.in |
403 |
++++ b/libiberty/Makefile.in |
404 |
+@@ -246,6 +246,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
405 |
+ $(AR) $(AR_FLAGS) $(TARGETLIB) \ |
406 |
+ $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ |
407 |
+ $(RANLIB) $(TARGETLIB); \ |
408 |
++ cp $(TARGETLIB) ../ ; \ |
409 |
+ cd ..; \ |
410 |
+ else true; fi |
411 |
+ |
412 |
|
413 |
diff --git a/8.3.0/gentoo/10_all_nopie-all-flags.patch b/8.3.0/gentoo/10_all_nopie-all-flags.patch |
414 |
new file mode 100644 |
415 |
index 0000000..48536e6 |
416 |
--- /dev/null |
417 |
+++ b/8.3.0/gentoo/10_all_nopie-all-flags.patch |
418 |
@@ -0,0 +1,18 @@ |
419 |
+We need to pass NO_PIE_CFLAGS to ALL_* so gcc don't fail when |
420 |
+we compile it with older gcc and pie. |
421 |
+ |
422 |
+--- a/gcc/Makefile.in 2015-06-25 19:18:12.000000000 +0200 |
423 |
++++ b/gcc/Makefile.in 2016-04-22 00:12:54.029178860 +0200 |
424 |
+@@ -991,10 +991,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) |
425 |
+ ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) |
426 |
+ |
427 |
+ # This is the variable to use when using $(COMPILER). |
428 |
+-ALL_COMPILERFLAGS = $(ALL_CXXFLAGS) |
429 |
++ALL_COMPILERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) |
430 |
+ |
431 |
+ # This is the variable to use when using $(LINKER). |
432 |
+-ALL_LINKERFLAGS = $(ALL_CXXFLAGS) |
433 |
++ALL_LINKERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) |
434 |
+ |
435 |
+ # Build and host support libraries. |
436 |
+ |
437 |
|
438 |
diff --git a/8.3.0/gentoo/11_all_extra-options.patch b/8.3.0/gentoo/11_all_extra-options.patch |
439 |
new file mode 100644 |
440 |
index 0000000..9187af8 |
441 |
--- /dev/null |
442 |
+++ b/8.3.0/gentoo/11_all_extra-options.patch |
443 |
@@ -0,0 +1,89 @@ |
444 |
+On Hardened we add some options like -fstack-clash-protection and -z now |
445 |
+ |
446 |
+--- a/gcc/common.opt 2018-03-28 16:51:09.000000000 +0200 |
447 |
++++ a/gcc/common.opt 2018-04-30 15:35:55.274096877 +0200 |
448 |
+@@ -2367,7 +2367,7 @@ Common Alias(fstack-check=, specific, no |
449 |
+ Insert stack checking code into the program. Same as -fstack-check=specific. |
450 |
+ |
451 |
+ fstack-clash-protection |
452 |
+-Common Report Var(flag_stack_clash_protection) Optimization |
453 |
++Common Report Var(flag_stack_clash_protection) Optimization Init(-1) |
454 |
+ Insert code to probe each page of stack space as it is allocated to protect |
455 |
+ from stack-clash style attacks. |
456 |
+ |
457 |
+--- a/gcc/defaults.h 2018-01-03 11:03:58.000000000 +0100 |
458 |
++++ b/gcc/defaults.h 2018-05-01 12:41:29.522851451 +0200 |
459 |
+@@ -1435,6 +1435,15 @@ see the files COPYING3 and COPYING.RUNTI |
460 |
+ #define STACK_CHECK_MAX_VAR_SIZE (STACK_CHECK_MAX_FRAME_SIZE / 100) |
461 |
+ #endif |
462 |
+ |
463 |
++/* Default value for flag_clash_protector when flag_clash_protector is |
464 |
++ initialized to -1. */ |
465 |
++#ifdef EXTRA_OPTIONS |
466 |
++#define DEFAULT_FLAG_SCP 1 |
467 |
++#endif |
468 |
++#ifndef DEFAULT_FLAG_SCP |
469 |
++#define DEFAULT_FLAG_SCP 0 |
470 |
++#endif |
471 |
++ |
472 |
+ /* By default, the C++ compiler will use function addresses in the |
473 |
+ vtable entries. Setting this nonzero tells the compiler to use |
474 |
+ function descriptors instead. The value of this macro says how |
475 |
+--- a/gcc/toplev.c 2018-02-13 17:18:37.000000000 +0100 |
476 |
++++ b/toplev.c 2018-04-30 16:46:37.244027303 +0200 |
477 |
+@@ -1682,6 +1682,10 @@ process_options (void) |
478 |
+ |
479 |
+ /* -fstack-clash-protection is not currently supported on targets |
480 |
+ where the stack grows up. */ |
481 |
++ if (flag_stack_clash_protection == -1) |
482 |
++ { |
483 |
++ flag_stack_clash_protection = DEFAULT_FLAG_SCP; |
484 |
++ } |
485 |
+ if (flag_stack_clash_protection && !STACK_GROWS_DOWNWARD) |
486 |
+ { |
487 |
+ warning_at (UNKNOWN_LOCATION, 0, |
488 |
+ |
489 |
+--- a/libgcc/Makefile.in 2011-11-22 04:01:02.000000000 +0100 |
490 |
++++ b/libgcc/Makefile.in 2011-12-25 15:18:22.449610631 +0100 |
491 |
+@@ -225,7 +225,7 @@ endif |
492 |
+ LIBGCC2_DEBUG_CFLAGS = -g |
493 |
+ LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \ |
494 |
+ $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \ |
495 |
+- -fbuilding-libgcc -fno-stack-protector \ |
496 |
++ -fbuilding-libgcc -fno-stack-protector -fno-stack-clash-protection \ |
497 |
+ $(INHIBIT_LIBC_CFLAGS) |
498 |
+ |
499 |
+ # Additional options to use when compiling libgcc2.a. |
500 |
+@@ -279,7 +290,7 @@ INTERNAL_CFLAGS = $(CFLAGS) $(LIBGCC2_CF |
501 |
+ -finhibit-size-directive -fno-inline -fno-exceptions \ |
502 |
+ -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \ |
503 |
+ -fbuilding-libgcc -fno-stack-protector $(FORCE_EXPLICIT_EH_REGISTRY) \ |
504 |
+- $(INHIBIT_LIBC_CFLAGS) |
505 |
++ -fno-stack-clash-protection $(INHIBIT_LIBC_CFLAGS) |
506 |
+ |
507 |
+ # Extra flags to use when compiling crt{begin,end}.o. |
508 |
+ CRTSTUFF_T_CFLAGS = |
509 |
+--- a/gcc/gcc.c 2016-02-19 23:18:38.000000000 +0100 |
510 |
++++ b/gcc/gcc.c 2016-05-02 22:56:10.185721270 +0200 |
511 |
+@@ -868,6 +868,12 @@ proper position among the other output f |
512 |
+ #endif |
513 |
+ #endif |
514 |
+ |
515 |
++#ifdef EXTRA_OPTIONS |
516 |
++#define LINK_NOW_SPEC "%{!nonow:-z now} " |
517 |
++#else |
518 |
++#define LINK_NOW_SPEC "" |
519 |
++#endif |
520 |
++ |
521 |
+ #ifdef ENABLE_DEFAULT_PIE |
522 |
+ #define NO_PIE_SPEC "no-pie|static" |
523 |
+ #define PIE_SPEC NO_PIE_SPEC "|r|shared:;" |
524 |
+@@ -1013,7 +1020,7 @@ proper position among the other output f |
525 |
+ %(linker) " \ |
526 |
+ LINK_PLUGIN_SPEC \ |
527 |
+ "%{flto|flto=*:%<fcompare-debug*} \ |
528 |
+- %{flto} %{fno-lto} %{flto=*} %l " LINK_PIE_SPEC \ |
529 |
++ %{flto} %{fno-lto} %{flto=*} %l " LINK_PIE_SPEC LINK_NOW_SPEC \ |
530 |
+ "%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \ |
531 |
+ "%X %{o*} %{e*} %{N} %{n} %{r}\ |
532 |
+ %{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!nostartfiles:%S}} \ |
533 |
|
534 |
diff --git a/8.3.0/gentoo/12_all_pr55930-dependency-tracking.patch b/8.3.0/gentoo/12_all_pr55930-dependency-tracking.patch |
535 |
new file mode 100644 |
536 |
index 0000000..a8743e0 |
537 |
--- /dev/null |
538 |
+++ b/8.3.0/gentoo/12_all_pr55930-dependency-tracking.patch |
539 |
@@ -0,0 +1,18 @@ |
540 |
+libatomic build failure if configured with --disable-dependency-tracking |
541 |
+load_n.c:115:1: fatal error: opening dependency file .deps/load_1_.lo.Ppo: No such file or directory |
542 |
+ |
543 |
+https://bugs.gentoo.org/463463 |
544 |
+http://gcc.gnu.org/PR55930 |
545 |
+ |
546 |
+--- a/libatomic/Makefile.in |
547 |
++++ b/libatomic/Makefile.in |
548 |
+@@ -298,7 +298,8 @@ PAT_N = $(word 2,$(PAT_SPLIT)) |
549 |
+ PAT_S = $(word 3,$(PAT_SPLIT)) |
550 |
+ IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) |
551 |
+ IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) |
552 |
+-M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo |
553 |
++@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo |
554 |
++@AMDEP_FALSE@M_DEPS = |
555 |
+ M_SIZE = -DN=$(PAT_N) |
556 |
+ M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) |
557 |
+ M_FILE = $(PAT_BASE)_n.c |
558 |
|
559 |
diff --git a/8.3.0/gentoo/13_all_sh-drop-sysroot-suffix.patch b/8.3.0/gentoo/13_all_sh-drop-sysroot-suffix.patch |
560 |
new file mode 100644 |
561 |
index 0000000..3dadd4c |
562 |
--- /dev/null |
563 |
+++ b/8.3.0/gentoo/13_all_sh-drop-sysroot-suffix.patch |
564 |
@@ -0,0 +1,32 @@ |
565 |
+From 5eeeff19bb4978a8d3c0d53bc81744bc25d82993 Mon Sep 17 00:00:00 2001 |
566 |
+From: Sergei Trofimovich <slyfox@g.o> |
567 |
+Date: Sat, 14 Apr 2018 13:07:39 +0100 |
568 |
+Subject: [PATCH] gcc/config.gcc: sh-*: Disable sysroot-suffix (PR42947) |
569 |
+ |
570 |
+sh-* is a multilib target. It is also one of 2 sysroot-prefix targets. |
571 |
+Unfortunately two options do not mix well. Attempt to use default |
572 |
+multilib flavour always prepends sysroot-prefix. |
573 |
+ |
574 |
+Bug: https://bugs.gentoo.org/511548 |
575 |
+Bug: https://gcc.gnu.org/PR42947 |
576 |
+Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
577 |
+--- |
578 |
+ gcc/config.gcc | 2 -- |
579 |
+ 1 file changed, 2 deletions(-) |
580 |
+ |
581 |
+diff --git a/gcc/config.gcc b/gcc/config.gcc |
582 |
+index 55c314afdbd..c320f24f123 100644 |
583 |
+--- a/gcc/config.gcc |
584 |
++++ b/gcc/config.gcc |
585 |
+@@ -2866,8 +2866,6 @@ sh-*-elf* | sh[12346l]*-*-elf* | \ |
586 |
+ if test x${enable_incomplete_targets} = xyes ; then |
587 |
+ tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1" |
588 |
+ fi |
589 |
+- tm_file="$tm_file ./sysroot-suffix.h" |
590 |
+- tmake_file="$tmake_file t-sysroot-suffix" |
591 |
+ ;; |
592 |
+ sh-*-rtems*) |
593 |
+ tmake_file="${tmake_file} sh/t-sh sh/t-rtems" |
594 |
+-- |
595 |
+2.17.0 |
596 |
+ |
597 |
|
598 |
diff --git a/8.3.0/gentoo/14_all_ia64-TEXTREL.patch b/8.3.0/gentoo/14_all_ia64-TEXTREL.patch |
599 |
new file mode 100644 |
600 |
index 0000000..706dbe5 |
601 |
--- /dev/null |
602 |
+++ b/8.3.0/gentoo/14_all_ia64-TEXTREL.patch |
603 |
@@ -0,0 +1,22 @@ |
604 |
+Fix textrels on -rdynamic binaries: |
605 |
+Bug: https://gcc.gnu.org/PR84553 |
606 |
+Bug: https://bugs.gentoo.org/566118 |
607 |
+--- a/gcc/config/ia64/ia64.c |
608 |
++++ a/gcc/config/ia64/ia64.c |
609 |
+@@ -10838,12 +10838,14 @@ ia64_hpux_reloc_rw_mask (void) |
610 |
+ |
611 |
+ /* For others, relax this so that relocations to local data goes in |
612 |
+ read-only segments, but we still cannot allow global relocations |
613 |
+- in read-only segments. */ |
614 |
++ in read-only segments. Except that use of -rdynamic at link time |
615 |
++ may make any local data global, so we can't allow local data in |
616 |
++ read-only segments either. */ |
617 |
+ |
618 |
+ static int |
619 |
+ ia64_reloc_rw_mask (void) |
620 |
+ { |
621 |
+- return flag_pic ? 3 : 2; |
622 |
++ return flag_pic ? 3 : 3; |
623 |
+ } |
624 |
+ |
625 |
+ /* Return the section to use for X. The only special thing we do here |
626 |
|
627 |
diff --git a/8.3.0/gentoo/15_all_disable-systemtap-switch.patch b/8.3.0/gentoo/15_all_disable-systemtap-switch.patch |
628 |
new file mode 100644 |
629 |
index 0000000..a40df83 |
630 |
--- /dev/null |
631 |
+++ b/8.3.0/gentoo/15_all_disable-systemtap-switch.patch |
632 |
@@ -0,0 +1,142 @@ |
633 |
+From bb510ed7ea82093c924b027489db6f92250a85b3 Mon Sep 17 00:00:00 2001 |
634 |
+From: Sergei Trofimovich <slyfox@g.o> |
635 |
+Date: Sat, 12 May 2018 12:56:46 +0100 |
636 |
+Subject: [PATCH] gcc/configure.ac: add --disable-systemtap switch |
637 |
+ |
638 |
+Before the change systemtap probes were enabled |
639 |
+if target headers had sys/sdt.h at ./configure time. |
640 |
+ |
641 |
+After the change explicitly ask to enable or disable |
642 |
+for probe support and not rely on automagic dependency |
643 |
+discovery. |
644 |
+ |
645 |
+Bug: https://bugs.gentoo.org/654748 |
646 |
+Bug: https://gcc.gnu.org/bugzilla/PR61257 |
647 |
+Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
648 |
+--- |
649 |
+ gcc/configure | 34 ++++++++++++++++++++++++++-------- |
650 |
+ gcc/configure.ac | 30 ++++++++++++++++++++++-------- |
651 |
+ 2 files changed, 48 insertions(+), 16 deletions(-) |
652 |
+ |
653 |
+diff --git a/gcc/configure b/gcc/configure |
654 |
+index 7d69faf549d..5e96c4f99fc 100755 |
655 |
+--- a/gcc/configure |
656 |
++++ b/gcc/configure |
657 |
+@@ -946,6 +946,7 @@ enable_gnu_unique_object |
658 |
+ enable_linker_build_id |
659 |
+ enable_libssp |
660 |
+ enable_default_ssp |
661 |
++enable_systemtap |
662 |
+ with_long_double_128 |
663 |
+ with_long_double_format |
664 |
+ with_gc |
665 |
+@@ -1688,6 +1689,7 @@ Optional Features: |
666 |
+ compiler will always pass --build-id to linker |
667 |
+ --enable-libssp enable linking against libssp |
668 |
+ --enable-default-ssp enable Stack Smashing Protection as default |
669 |
++ --disable-systemtap enable systemtap static probe points [default=auto] |
670 |
+ --enable-maintainer-mode |
671 |
+ enable make rules and dependencies not useful (and |
672 |
+ sometimes confusing) to the casual installer |
673 |
+@@ -18448,7 +18450,7 @@ else |
674 |
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
675 |
+ lt_status=$lt_dlunknown |
676 |
+ cat > conftest.$ac_ext <<_LT_EOF |
677 |
+-#line 18451 "configure" |
678 |
++#line 18453 "configure" |
679 |
+ #include "confdefs.h" |
680 |
+ |
681 |
+ #if HAVE_DLFCN_H |
682 |
+@@ -18554,7 +18556,7 @@ else |
683 |
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
684 |
+ lt_status=$lt_dlunknown |
685 |
+ cat > conftest.$ac_ext <<_LT_EOF |
686 |
+-#line 18557 "configure" |
687 |
++#line 18559 "configure" |
688 |
+ #include "confdefs.h" |
689 |
+ |
690 |
+ #if HAVE_DLFCN_H |
691 |
+@@ -29297,17 +29299,33 @@ fi |
692 |
+ |
693 |
+ # Test for <sys/sdt.h> on the target. |
694 |
+ |
695 |
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 |
696 |
++ |
697 |
++# Check whether --enable-systemtap was given. |
698 |
++if test "${enable_systemtap+set}" = set; then : |
699 |
++ enableval=$enable_systemtap; enable_systemtap=$enableval |
700 |
++else |
701 |
++ enable_systemtap=auto |
702 |
++fi |
703 |
++ |
704 |
++ |
705 |
++if test x$enable_systemtap != xno; then |
706 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 |
707 |
+ $as_echo_n "checking sys/sdt.h in the target C library... " >&6; } |
708 |
+-have_sys_sdt_h=no |
709 |
+-if test -f $target_header_dir/sys/sdt.h; then |
710 |
+- have_sys_sdt_h=yes |
711 |
++ have_sys_sdt_h=no |
712 |
++ if test -f $target_header_dir/sys/sdt.h ; then |
713 |
++ have_sys_sdt_h=yes |
714 |
+ |
715 |
+ $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h |
716 |
+ |
717 |
+-fi |
718 |
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 |
719 |
++ fi |
720 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 |
721 |
+ $as_echo "$have_sys_sdt_h" >&6; } |
722 |
++ if test x$enable_systemtap = xyes ; then |
723 |
++ if test x$have_sys_sdt_h = xno ; then |
724 |
++ as_fn_error "sys/sdt.h was not found" "$LINENO" 5 |
725 |
++ fi |
726 |
++ fi |
727 |
++fi |
728 |
+ |
729 |
+ # Check if TFmode long double should be used by default or not. |
730 |
+ # Some glibc targets used DFmode long double, but with glibc 2.4 |
731 |
+diff --git a/gcc/configure.ac b/gcc/configure.ac |
732 |
+index 36124b8ce90..8356e579a20 100644 |
733 |
+--- a/gcc/configure.ac |
734 |
++++ b/gcc/configure.ac |
735 |
+@@ -5965,14 +5965,28 @@ AC_SUBST([enable_default_ssp]) |
736 |
+ |
737 |
+ # Test for <sys/sdt.h> on the target. |
738 |
+ GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) |
739 |
+-AC_MSG_CHECKING(sys/sdt.h in the target C library) |
740 |
+-have_sys_sdt_h=no |
741 |
+-if test -f $target_header_dir/sys/sdt.h; then |
742 |
+- have_sys_sdt_h=yes |
743 |
+- AC_DEFINE(HAVE_SYS_SDT_H, 1, |
744 |
+- [Define if your target C library provides sys/sdt.h]) |
745 |
+-fi |
746 |
+-AC_MSG_RESULT($have_sys_sdt_h) |
747 |
++ |
748 |
++AC_ARG_ENABLE(systemtap, |
749 |
++[AS_HELP_STRING([--disable-systemtap], |
750 |
++ [enable systemtap static probe points [default=auto]])], |
751 |
++ enable_systemtap=$enableval, |
752 |
++ enable_systemtap=auto) |
753 |
++ |
754 |
++if test x$enable_systemtap != xno; then |
755 |
++ AC_MSG_CHECKING(sys/sdt.h in the target C library) |
756 |
++ have_sys_sdt_h=no |
757 |
++ if test -f $target_header_dir/sys/sdt.h ; then |
758 |
++ have_sys_sdt_h=yes |
759 |
++ AC_DEFINE(HAVE_SYS_SDT_H, 1, |
760 |
++ [Define if your target C library provides sys/sdt.h]) |
761 |
++ fi |
762 |
++ AC_MSG_RESULT($have_sys_sdt_h) |
763 |
++ if test x$enable_systemtap = xyes ; then |
764 |
++ if test x$have_sys_sdt_h = xno ; then |
765 |
++ AC_MSG_ERROR([sys/sdt.h was not found]) |
766 |
++ fi |
767 |
++ fi |
768 |
++fi |
769 |
+ |
770 |
+ # Check if TFmode long double should be used by default or not. |
771 |
+ # Some glibc targets used DFmode long double, but with glibc 2.4 |
772 |
+-- |
773 |
+2.17.0 |
774 |
+ |
775 |
|
776 |
diff --git a/8.3.0/gentoo/16_all_sh_textrel-on-libitm.patch b/8.3.0/gentoo/16_all_sh_textrel-on-libitm.patch |
777 |
new file mode 100644 |
778 |
index 0000000..68e50f9 |
779 |
--- /dev/null |
780 |
+++ b/8.3.0/gentoo/16_all_sh_textrel-on-libitm.patch |
781 |
@@ -0,0 +1,41 @@ |
782 |
+Backport of upstream https://gcc.gnu.org/PR86712 |
783 |
+ |
784 |
+From 7bb408709cd28034e1bfbd0596887997bcdccee4 Mon Sep 17 00:00:00 2001 |
785 |
+From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4> |
786 |
+Date: Fri, 3 Aug 2018 20:53:08 +0000 |
787 |
+Subject: [PATCH] * config/sh/sjlj.S: Adjust to use PIC vs normal code |
788 |
+ to avoid absolute relocation in a shared library. |
789 |
+ |
790 |
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263299 138bc75d-0d04-0410-961f-82ee72b054a4 |
791 |
+--- |
792 |
+ libitm/ChangeLog | 5 +++++ |
793 |
+ libitm/config/sh/.sjlj.S.swp | Bin 0 -> 12288 bytes |
794 |
+ libitm/config/sh/sjlj.S | 4 ++-- |
795 |
+ 3 files changed, 7 insertions(+), 2 deletions(-) |
796 |
+ create mode 100644 libitm/config/sh/.sjlj.S.swp |
797 |
+ |
798 |
+diff --git a/libitm/config/sh/sjlj.S b/libitm/config/sh/sjlj.S |
799 |
+index 043f36749be..f265ab8f898 100644 |
800 |
+--- a/libitm/config/sh/sjlj.S |
801 |
++++ b/libitm/config/sh/sjlj.S |
802 |
+@@ -53,7 +53,7 @@ _ITM_beginTransaction: |
803 |
+ #else |
804 |
+ cfi_def_cfa_offset (4*10) |
805 |
+ #endif |
806 |
+-#if defined HAVE_ATTRIBUTE_VISIBILITY || !defined __PIC__ |
807 |
++#if !defined __PIC__ |
808 |
+ mov.l .Lbegin, r1 |
809 |
+ jsr @r1 |
810 |
+ mov r15, r5 |
811 |
+@@ -78,7 +78,7 @@ _ITM_beginTransaction: |
812 |
+ |
813 |
+ .align 2 |
814 |
+ .Lbegin: |
815 |
+-#if defined HAVE_ATTRIBUTE_VISIBILITY || !defined __PIC__ |
816 |
++#if !defined __PIC__ |
817 |
+ .long GTM_begin_transaction |
818 |
+ #else |
819 |
+ .long GTM_begin_transaction@PCREL-(.Lbegin0-.) |
820 |
+-- |
821 |
+2.18.0 |
822 |
+ |
823 |
|
824 |
diff --git a/8.3.0/gentoo/17_all_m68k-textrel-on-libgcc.patch b/8.3.0/gentoo/17_all_m68k-textrel-on-libgcc.patch |
825 |
new file mode 100644 |
826 |
index 0000000..a2aa100 |
827 |
--- /dev/null |
828 |
+++ b/8.3.0/gentoo/17_all_m68k-textrel-on-libgcc.patch |
829 |
@@ -0,0 +1,93 @@ |
830 |
+https://gcc.gnu.org/PR86224 |
831 |
+ |
832 |
+From 1d89df42bdaf0745fd2a0d294471ac16f0553707 Mon Sep 17 00:00:00 2001 |
833 |
+From: Sergei Trofimovich <slyfox@g.o> |
834 |
+Date: Sat, 28 Jul 2018 11:33:27 +0100 |
835 |
+Subject: [PATCH] libgcc: m68k: avoid absolute relocation in shared library |
836 |
+ |
837 |
+Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
838 |
+--- |
839 |
+ libgcc/config/m68k/lb1sf68.S | 19 ++++++++++++++----- |
840 |
+ 1 file changed, 14 insertions(+), 5 deletions(-) |
841 |
+ |
842 |
+diff --git a/libgcc/config/m68k/lb1sf68.S b/libgcc/config/m68k/lb1sf68.S |
843 |
+index 325a7c17d9b..16c6dc3f5a7 100644 |
844 |
+--- a/libgcc/config/m68k/lb1sf68.S |
845 |
++++ b/libgcc/config/m68k/lb1sf68.S |
846 |
+@@ -435,7 +435,10 @@ $_exception_handler: |
847 |
+ .text |
848 |
+ FUNC(__mulsi3) |
849 |
+ .globl SYM (__mulsi3) |
850 |
++ .globl SYM (__mulsi3_internal) |
851 |
++ .hidden SYM (__mulsi3_internal) |
852 |
+ SYM (__mulsi3): |
853 |
++SYM (__mulsi3_internal): |
854 |
+ movew sp@(4), d0 /* x0 -> d0 */ |
855 |
+ muluw sp@(10), d0 /* x0*y1 */ |
856 |
+ movew sp@(6), d1 /* x1 -> d1 */ |
857 |
+@@ -458,7 +461,10 @@ SYM (__mulsi3): |
858 |
+ .text |
859 |
+ FUNC(__udivsi3) |
860 |
+ .globl SYM (__udivsi3) |
861 |
++ .globl SYM (__udivsi3_internal) |
862 |
++ .hidden SYM (__udivsi3_internal) |
863 |
+ SYM (__udivsi3): |
864 |
++SYM (__udivsi3_internal): |
865 |
+ #ifndef __mcoldfire__ |
866 |
+ movel d2, sp@- |
867 |
+ movel sp@(12), d1 /* d1 = divisor */ |
868 |
+@@ -534,7 +540,10 @@ L2: subql IMM (1),d4 |
869 |
+ .text |
870 |
+ FUNC(__divsi3) |
871 |
+ .globl SYM (__divsi3) |
872 |
++ .globl SYM (__divsi3_internal) |
873 |
++ .hidden SYM (__divsi3_internal) |
874 |
+ SYM (__divsi3): |
875 |
++SYM (__divsi3_internal): |
876 |
+ movel d2, sp@- |
877 |
+ |
878 |
+ moveq IMM (1), d2 /* sign of result stored in d2 (=1 or =-1) */ |
879 |
+@@ -557,7 +566,7 @@ L1: movel sp@(8), d0 /* d0 = dividend */ |
880 |
+ |
881 |
+ L2: movel d1, sp@- |
882 |
+ movel d0, sp@- |
883 |
+- PICCALL SYM (__udivsi3) /* divide abs(dividend) by abs(divisor) */ |
884 |
++ PICCALL SYM (__udivsi3_internal) /* divide abs(dividend) by abs(divisor) */ |
885 |
+ addql IMM (8), sp |
886 |
+ |
887 |
+ tstb d2 |
888 |
+@@ -577,13 +586,13 @@ SYM (__umodsi3): |
889 |
+ movel sp@(4), d0 /* d0 = dividend */ |
890 |
+ movel d1, sp@- |
891 |
+ movel d0, sp@- |
892 |
+- PICCALL SYM (__udivsi3) |
893 |
++ PICCALL SYM (__udivsi3_internal) |
894 |
+ addql IMM (8), sp |
895 |
+ movel sp@(8), d1 /* d1 = divisor */ |
896 |
+ #ifndef __mcoldfire__ |
897 |
+ movel d1, sp@- |
898 |
+ movel d0, sp@- |
899 |
+- PICCALL SYM (__mulsi3) /* d0 = (a/b)*b */ |
900 |
++ PICCALL SYM (__mulsi3_internal) /* d0 = (a/b)*b */ |
901 |
+ addql IMM (8), sp |
902 |
+ #else |
903 |
+ mulsl d1,d0 |
904 |
+@@ -603,13 +612,13 @@ SYM (__modsi3): |
905 |
+ movel sp@(4), d0 /* d0 = dividend */ |
906 |
+ movel d1, sp@- |
907 |
+ movel d0, sp@- |
908 |
+- PICCALL SYM (__divsi3) |
909 |
++ PICCALL SYM (__divsi3_internal) |
910 |
+ addql IMM (8), sp |
911 |
+ movel sp@(8), d1 /* d1 = divisor */ |
912 |
+ #ifndef __mcoldfire__ |
913 |
+ movel d1, sp@- |
914 |
+ movel d0, sp@- |
915 |
+- PICCALL SYM (__mulsi3) /* d0 = (a/b)*b */ |
916 |
++ PICCALL SYM (__mulsi3_internal) /* d0 = (a/b)*b */ |
917 |
+ addql IMM (8), sp |
918 |
+ #else |
919 |
+ mulsl d1,d0 |
920 |
+-- |
921 |
+2.18.0 |
922 |
+ |
923 |
|
924 |
diff --git a/8.3.0/gentoo/18_all_respect-build-cxxflags.patch b/8.3.0/gentoo/18_all_respect-build-cxxflags.patch |
925 |
new file mode 100644 |
926 |
index 0000000..14139ea |
927 |
--- /dev/null |
928 |
+++ b/8.3.0/gentoo/18_all_respect-build-cxxflags.patch |
929 |
@@ -0,0 +1,39 @@ |
930 |
+Pass CXXFLAGS as CXXFLAGS_FOR_BUILD to stage1. |
931 |
+ |
932 |
+Fixes build failure when CXXFLAGS contains |
933 |
+TARGET-specific flags. |
934 |
+ |
935 |
+Tested on x86_64-pc-linux-gnu host as: |
936 |
+ # CFLAGS='-O2 -mfpu=neon-vfpv4' CXXFLAGS='-O2 -mfpu=neon-vfpv4' \ |
937 |
+ armv7a-unknown-linux-gnueabihf-emerge -v1 sys-devel/gcc --quiet-build=n |
938 |
+ |
939 |
+Fix by Peter Levine. |
940 |
+https://bugs.gentoo.org/581406 |
941 |
+--- a/Makefile.in |
942 |
++++ b/Makefile.in |
943 |
+@@ -170,6 +170,7 @@ |
944 |
+ # built for the build system to override those in BASE_FLAGS_TO_PASS. |
945 |
+ EXTRA_BUILD_FLAGS = \ |
946 |
+ CFLAGS="$(CFLAGS_FOR_BUILD)" \ |
947 |
++ CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ |
948 |
+ LDFLAGS="$(LDFLAGS_FOR_BUILD)" |
949 |
+ |
950 |
+ # This is the list of directories to built for the host system. |
951 |
+@@ -710,6 +711,7 @@ |
952 |
+ "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
953 |
+ "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
954 |
+ "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
955 |
++ "CXXFLAGS_FOR_BUILD=$(CXXFLAGS_FOR_BUILD)" \ |
956 |
+ "EXPECT=$(EXPECT)" \ |
957 |
+ "FLEX=$(FLEX)" \ |
958 |
+ "INSTALL=$(INSTALL)" \ |
959 |
+--- a/Makefile.tpl |
960 |
++++ b/Makefile.tpl |
961 |
+@@ -172,6 +172,7 @@ |
962 |
+ # built for the build system to override those in BASE_FLAGS_TO_PASS. |
963 |
+ EXTRA_BUILD_FLAGS = \ |
964 |
+ CFLAGS="$(CFLAGS_FOR_BUILD)" \ |
965 |
++ CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ |
966 |
+ LDFLAGS="$(LDFLAGS_FOR_BUILD)" |
967 |
+ |
968 |
+ # This is the list of directories to built for the host system. |
969 |
|
970 |
diff --git a/8.3.0/gentoo/19_all_libgfortran-Werror.patch b/8.3.0/gentoo/19_all_libgfortran-Werror.patch |
971 |
new file mode 100644 |
972 |
index 0000000..f6c26bf |
973 |
--- /dev/null |
974 |
+++ b/8.3.0/gentoo/19_all_libgfortran-Werror.patch |
975 |
@@ -0,0 +1,20 @@ |
976 |
+libgfortran does not respect --disable-werror |
977 |
+ |
978 |
+https://bugs.gentoo.org/433435 |
979 |
+http://gcc.gnu.org/PR54724 |
980 |
+ |
981 |
+ |
982 |
+--- a/libgfortran/configure.ac |
983 |
++++ b/libgfortran/configure.ac |
984 |
+@@ -140,3 +140,3 @@ AM_PROG_CC_C_O |
985 |
+ if test "x$GCC" = "xyes"; then |
986 |
+- AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |
987 |
++ AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring" |
988 |
+ ## We like to use C11 and C99 routines when available. This makes |
989 |
+--- a/libgfortran/configure |
990 |
++++ b/libgfortran/configure |
991 |
+@@ -5764,3 +5764,3 @@ fi |
992 |
+ # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
993 |
+ if test "x$GCC" = "xyes"; then |
994 |
+- AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |
995 |
++ AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring" |
996 |
|
997 |
diff --git a/8.3.0/gentoo/20_all_libgomp-Werror.patch b/8.3.0/gentoo/20_all_libgomp-Werror.patch |
998 |
new file mode 100644 |
999 |
index 0000000..416808a |
1000 |
--- /dev/null |
1001 |
+++ b/8.3.0/gentoo/20_all_libgomp-Werror.patch |
1002 |
@@ -0,0 +1,20 @@ |
1003 |
+libgomp does not respect --disable-werror |
1004 |
+ |
1005 |
+https://bugs.gentoo.org/229059 |
1006 |
+http://gcc.gnu.org/PR38436 |
1007 |
+--- a/libgomp/configure.ac |
1008 |
++++ b/libgomp/configure.ac |
1009 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1010 |
+ # Add -Wall -Werror if we are using GCC. |
1011 |
+ if test "x$GCC" = "xyes"; then |
1012 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1013 |
++ XCFLAGS="$XCFLAGS -Wall" |
1014 |
+ fi |
1015 |
+--- a/libgomp/configure |
1016 |
++++ b/libgomp/configure |
1017 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1018 |
+ # Add -Wall -Werror if we are using GCC. |
1019 |
+ if test "x$GCC" = "xyes"; then |
1020 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1021 |
++ XCFLAGS="$XCFLAGS -Wall" |
1022 |
+ fi |
1023 |
|
1024 |
diff --git a/8.3.0/gentoo/21_all_libitm-Werror.patch b/8.3.0/gentoo/21_all_libitm-Werror.patch |
1025 |
new file mode 100644 |
1026 |
index 0000000..27181e0 |
1027 |
--- /dev/null |
1028 |
+++ b/8.3.0/gentoo/21_all_libitm-Werror.patch |
1029 |
@@ -0,0 +1,19 @@ |
1030 |
+libitm does not respect --disable-werror |
1031 |
+ |
1032 |
+https://bugs.gentoo.org/475350 |
1033 |
+--- a/libitm/configure.ac |
1034 |
++++ b/libitm/configure.ac |
1035 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1036 |
+ # Add -Wall -Werror if we are using GCC. |
1037 |
+ if test "x$GCC" = "xyes"; then |
1038 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1039 |
++ XCFLAGS="$XCFLAGS -Wall" |
1040 |
+ fi |
1041 |
+--- a/libitm/configure |
1042 |
++++ b/libitm/configure |
1043 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1044 |
+ # Add -Wall -Werror if we are using GCC. |
1045 |
+ if test "x$GCC" = "xyes"; then |
1046 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1047 |
++ XCFLAGS="$XCFLAGS -Wall" |
1048 |
+ fi |
1049 |
|
1050 |
diff --git a/8.3.0/gentoo/22_all_libatomic-Werror.patch b/8.3.0/gentoo/22_all_libatomic-Werror.patch |
1051 |
new file mode 100644 |
1052 |
index 0000000..0550722 |
1053 |
--- /dev/null |
1054 |
+++ b/8.3.0/gentoo/22_all_libatomic-Werror.patch |
1055 |
@@ -0,0 +1,19 @@ |
1056 |
+libatomic does not respect --disable-werror |
1057 |
+ |
1058 |
+https://bugs.gentoo.org/475350 |
1059 |
+--- a/libatomic/configure.ac |
1060 |
++++ b/libatomic/configure.ac |
1061 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1062 |
+ # Add -Wall -Werror if we are using GCC. |
1063 |
+ if test "x$GCC" = "xyes"; then |
1064 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1065 |
++ XCFLAGS="$XCFLAGS -Wall" |
1066 |
+ fi |
1067 |
+--- a/libatomic/configure |
1068 |
++++ b/libatomic/configure |
1069 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1070 |
+ # Add -Wall -Werror if we are using GCC. |
1071 |
+ if test "x$GCC" = "xyes"; then |
1072 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1073 |
++ XCFLAGS="$XCFLAGS -Wall" |
1074 |
+ fi |
1075 |
|
1076 |
diff --git a/8.3.0/gentoo/23_all_libbacktrace-Werror.patch b/8.3.0/gentoo/23_all_libbacktrace-Werror.patch |
1077 |
new file mode 100644 |
1078 |
index 0000000..57dd284 |
1079 |
--- /dev/null |
1080 |
+++ b/8.3.0/gentoo/23_all_libbacktrace-Werror.patch |
1081 |
@@ -0,0 +1,17 @@ |
1082 |
+libbacktrace does not respect --disable-werror |
1083 |
+ |
1084 |
+https://bugs.gentoo.org/667104 |
1085 |
+--- a/libbacktrace/configure |
1086 |
++++ b/libbacktrace/configure |
1087 |
+@@ -11634,3 +11634,3 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1088 |
+ if test -n "${with_target_subdir}"; then |
1089 |
+- WARN_FLAGS="$WARN_FLAGS -Werror" |
1090 |
++ WARN_FLAGS="$WARN_FLAGS" |
1091 |
+ fi |
1092 |
+--- a/libbacktrace/configure.ac |
1093 |
++++ b/libbacktrace/configure.ac |
1094 |
+@@ -138,3 +138,3 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \ |
1095 |
+ if test -n "${with_target_subdir}"; then |
1096 |
+- WARN_FLAGS="$WARN_FLAGS -Werror" |
1097 |
++ WARN_FLAGS="$WARN_FLAGS" |
1098 |
+ fi |
1099 |
|
1100 |
diff --git a/8.3.0/gentoo/24_all_libsanitizer-Werror.patch b/8.3.0/gentoo/24_all_libsanitizer-Werror.patch |
1101 |
new file mode 100644 |
1102 |
index 0000000..0e484a4 |
1103 |
--- /dev/null |
1104 |
+++ b/8.3.0/gentoo/24_all_libsanitizer-Werror.patch |
1105 |
@@ -0,0 +1,17 @@ |
1106 |
+libsanitizer does not respect --disable-werror |
1107 |
+ |
1108 |
+https://bugs.gentoo.org/667104 |
1109 |
+--- a/libsanitizer/libbacktrace/Makefile.am |
1110 |
++++ b/libsanitizer/libbacktrace/Makefile.am |
1111 |
+@@ -37,3 +37,3 @@ AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \ |
1112 |
+ WARN_FLAGS = -W -Wall -Wwrite-strings -Wmissing-format-attribute \ |
1113 |
+- -Wcast-qual -Werror |
1114 |
++ -Wcast-qual |
1115 |
+ C_WARN_FLAGS = $(WARN_FLAGS) -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition |
1116 |
+--- a/libsanitizer/libbacktrace/Makefile.in |
1117 |
++++ b/libsanitizer/libbacktrace/Makefile.in |
1118 |
+@@ -297,3 +297,3 @@ AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \ |
1119 |
+ WARN_FLAGS = -W -Wall -Wwrite-strings -Wmissing-format-attribute \ |
1120 |
+- -Wcast-qual -Werror |
1121 |
++ -Wcast-qual |
1122 |
+ |
1123 |
|
1124 |
diff --git a/8.3.0/gentoo/25_all_libstdcxx-no-vtv.patch b/8.3.0/gentoo/25_all_libstdcxx-no-vtv.patch |
1125 |
new file mode 100644 |
1126 |
index 0000000..68508bd |
1127 |
--- /dev/null |
1128 |
+++ b/8.3.0/gentoo/25_all_libstdcxx-no-vtv.patch |
1129 |
@@ -0,0 +1,61 @@ |
1130 |
+Final libstdc++.so should not contain rpath to make libvtv usable. |
1131 |
+It's up to final binaries to link against proper libvtv. |
1132 |
+ |
1133 |
+Bug: https://bugs.gentoo.org/582524 |
1134 |
+Bug: https://gcc.gnu.org/PR85884 |
1135 |
+--- a/libstdc++-v3/src/Makefile.am |
1136 |
++++ b/libstdc++-v3/src/Makefile.am |
1137 |
+@@ -217,7 +217,6 @@ CXXLINK = \ |
1138 |
+ $(LIBTOOL) --tag CXX \ |
1139 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1140 |
+ --mode=link $(CXX) \ |
1141 |
+- $(VTV_CXXLINKFLAGS) \ |
1142 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1143 |
+ |
1144 |
+ # Symbol versioning for shared libraries. |
1145 |
+--- a/libstdc++-v3/src/Makefile.in |
1146 |
++++ b/libstdc++-v3/src/Makefile.in |
1147 |
+@@ -511,7 +511,6 @@ CXXLINK = \ |
1148 |
+ $(LIBTOOL) --tag CXX \ |
1149 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1150 |
+ --mode=link $(CXX) \ |
1151 |
+- $(VTV_CXXLINKFLAGS) \ |
1152 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1153 |
+ |
1154 |
+ @ENABLE_SYMVERS_TRUE@CLEANFILES = libstdc++-symbols.ver $(version_dep) |
1155 |
+--- a/libstdc++-v3/src/c++11/Makefile.am |
1156 |
++++ b/libstdc++-v3/src/c++11/Makefile.am |
1157 |
+@@ -204,5 +204,4 @@ CXXLINK = \ |
1158 |
+ $(LIBTOOL) --tag CXX --tag disable-shared \ |
1159 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1160 |
+ --mode=link $(CXX) \ |
1161 |
+- $(VTV_CXXLINKFLAGS) \ |
1162 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1163 |
+--- a/libstdc++-v3/src/c++11/Makefile.in |
1164 |
++++ b/libstdc++-v3/src/c++11/Makefile.in |
1165 |
+@@ -496,7 +496,6 @@ CXXLINK = \ |
1166 |
+ $(LIBTOOL) --tag CXX --tag disable-shared \ |
1167 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1168 |
+ --mode=link $(CXX) \ |
1169 |
+- $(VTV_CXXLINKFLAGS) \ |
1170 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1171 |
+ |
1172 |
+ all: all-am |
1173 |
+--- a/libstdc++-v3/src/c++98/Makefile.am |
1174 |
++++ b/libstdc++-v3/src/c++98/Makefile.am |
1175 |
+@@ -273,5 +273,4 @@ CXXLINK = \ |
1176 |
+ $(LIBTOOL) --tag CXX --tag disable-shared \ |
1177 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1178 |
+ --mode=link $(CXX) \ |
1179 |
+- $(VTV_CXXLINKFLAGS) \ |
1180 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1181 |
+--- a/libstdc++-v3/src/c++98/Makefile.in |
1182 |
++++ b/libstdc++-v3/src/c++98/Makefile.in |
1183 |
+@@ -500,7 +500,6 @@ CXXLINK = \ |
1184 |
+ $(LIBTOOL) --tag CXX --tag disable-shared \ |
1185 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1186 |
+ --mode=link $(CXX) \ |
1187 |
+- $(VTV_CXXLINKFLAGS) \ |
1188 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1189 |
+ |
1190 |
+ all: all-am |
1191 |
|
1192 |
diff --git a/8.3.0/gentoo/README.history b/8.3.0/gentoo/README.history |
1193 |
new file mode 100644 |
1194 |
index 0000000..796db27 |
1195 |
--- /dev/null |
1196 |
+++ b/8.3.0/gentoo/README.history |
1197 |
@@ -0,0 +1,26 @@ |
1198 |
+1.0 22 Feb 2019 |
1199 |
+ + 01_all_default-fortify-source.patch |
1200 |
+ + 02_all_default-warn-format-security.patch |
1201 |
+ + 03_all_default-warn-trampolines.patch |
1202 |
+ + 04_all_default-ssp-fix.patch |
1203 |
+ + 05_all_alpha-mieee-default.patch |
1204 |
+ + 06_all_ia64_note.GNU-stack.patch |
1205 |
+ + 07_all_i386_libgcc_note.GNU-stack.patch |
1206 |
+ + 08_all_libiberty-asprintf.patch |
1207 |
+ + 09_all_libiberty-pic.patch |
1208 |
+ + 10_all_nopie-all-flags.patch |
1209 |
+ + 11_all_extra-options.patch |
1210 |
+ + 12_all_pr55930-dependency-tracking.patch |
1211 |
+ + 13_all_sh-drop-sysroot-suffix.patch |
1212 |
+ + 14_all_ia64-TEXTREL.patch |
1213 |
+ + 15_all_disable-systemtap-switch.patch |
1214 |
+ + 16_all_sh_textrel-on-libitm.patch |
1215 |
+ + 17_all_m68k-textrel-on-libgcc.patch |
1216 |
+ + 18_all_respect-build-cxxflags.patch |
1217 |
+ + 19_all_libgfortran-Werror.patch |
1218 |
+ + 20_all_libgomp-Werror.patch |
1219 |
+ + 21_all_libitm-Werror.patch |
1220 |
+ + 22_all_libatomic-Werror.patch |
1221 |
+ + 23_all_libbacktrace-Werror.patch |
1222 |
+ + 24_all_libsanitizer-Werror.patch |
1223 |
+ + 25_all_libstdcxx-no-vtv.patch |