1 |
commit: 0f4d1be169eebcc993c567da333c96c3b4e6abbe |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 15 16:43:10 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 18 20:03:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=0f4d1be1 |
7 |
|
8 |
9.5.0: clone of 9.4.0, add glibc-2.36 patch |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
9.4.0/gentoo/30_all_glibc_236.patch | 37 ++++++ |
13 |
9.4.0/gentoo/README.history | 3 + |
14 |
9.5.0/gentoo/01_all_default-fortify-source.patch | 22 ++++ |
15 |
.../02_all_default-warn-format-security.patch | 22 ++++ |
16 |
9.5.0/gentoo/03_all_default-warn-trampolines.patch | 13 ++ |
17 |
9.5.0/gentoo/04_all_nossp-on-nostdlib.patch | 27 ++++ |
18 |
9.5.0/gentoo/05_all_alpha-mieee-default.patch | 39 ++++++ |
19 |
9.5.0/gentoo/06_all_ia64_note.GNU-stack.patch | 92 +++++++++++++ |
20 |
.../gentoo/07_all_i386_libgcc_note.GNU-stack.patch | 54 ++++++++ |
21 |
9.5.0/gentoo/08_all_libiberty-asprintf.patch | 18 +++ |
22 |
9.5.0/gentoo/09_all_libiberty-pic.patch | 10 ++ |
23 |
9.5.0/gentoo/10_all_nopie-all-flags.patch | 18 +++ |
24 |
9.5.0/gentoo/11_all_extra-options.patch | 89 +++++++++++++ |
25 |
.../12_all_pr55930-dependency-tracking.patch | 18 +++ |
26 |
9.5.0/gentoo/13_all_sh-drop-sysroot-suffix.patch | 32 +++++ |
27 |
9.5.0/gentoo/14_all_ia64-TEXTREL.patch | 22 ++++ |
28 |
9.5.0/gentoo/15_all_disable-systemtap-switch.patch | 122 ++++++++++++++++++ |
29 |
9.5.0/gentoo/16_all_m68k-textrel-on-libgcc.patch | 93 ++++++++++++++ |
30 |
9.5.0/gentoo/17_all_respect-build-cxxflags.patch | 39 ++++++ |
31 |
9.5.0/gentoo/18_all_libgfortran-Werror.patch | 20 +++ |
32 |
9.5.0/gentoo/19_all_libgomp-Werror.patch | 20 +++ |
33 |
9.5.0/gentoo/20_all_libitm-Werror.patch | 19 +++ |
34 |
9.5.0/gentoo/21_all_libatomic-Werror.patch | 19 +++ |
35 |
9.5.0/gentoo/22_all_libbacktrace-Werror.patch | 17 +++ |
36 |
9.5.0/gentoo/23_all_libsanitizer-Werror.patch | 17 +++ |
37 |
9.5.0/gentoo/24_all_libstdcxx-no-vtv.patch | 61 +++++++++ |
38 |
9.5.0/gentoo/25_all_disable-riscv32-ABIs.patch | 53 ++++++++ |
39 |
9.5.0/gentoo/26_all_default_ssp-buffer-size.patch | 14 ++ |
40 |
9.5.0/gentoo/27_all_hppa-faster-synth_mult.patch | 44 +++++++ |
41 |
9.5.0/gentoo/28_all_libcpp-ar.patch | 143 +++++++++++++++++++++ |
42 |
9.5.0/gentoo/29_all_plugin-objdump.patch | 34 +++++ |
43 |
9.5.0/gentoo/30_all_glibc_236.patch | 39 ++++++ |
44 |
{9.4.0 => 9.5.0}/gentoo/README.history | 3 +- |
45 |
33 files changed, 1272 insertions(+), 1 deletion(-) |
46 |
|
47 |
diff --git a/9.4.0/gentoo/30_all_glibc_236.patch b/9.4.0/gentoo/30_all_glibc_236.patch |
48 |
new file mode 100644 |
49 |
index 0000000..68fe0a6 |
50 |
--- /dev/null |
51 |
+++ b/9.4.0/gentoo/30_all_glibc_236.patch |
52 |
@@ -0,0 +1,37 @@ |
53 |
+https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=6bd956e31b2fb6fe1eee4eb1bf309247dcd19b23 |
54 |
+ |
55 |
+From 6bd956e31b2fb6fe1eee4eb1bf309247dcd19b23 Mon Sep 17 00:00:00 2001 |
56 |
+From: Martin Liska <mliska@××××.cz> |
57 |
+Date: Mon, 11 Jul 2022 22:03:14 +0200 |
58 |
+Subject: [PATCH] libsanitizer: cherry-pick 9cf13067cb5088626ba7 from upstream |
59 |
+ |
60 |
+9cf13067cb5088626ba7ee1ec4c42ec59c7995a0 [sanitizer] Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr conflict with glibc 2.36 |
61 |
+ |
62 |
+(cherry picked from commit 2701442d0cf6292f6624443c15813d6d1a3562fe) |
63 |
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp |
64 |
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp |
65 |
+@@ -72,7 +72,9 @@ |
66 |
+ #include <sys/vt.h> |
67 |
+ #include <linux/cdrom.h> |
68 |
+ #include <linux/fd.h> |
69 |
++#if SANITIZER_ANDROID |
70 |
+ #include <linux/fs.h> |
71 |
++#endif |
72 |
+ #include <linux/hdreg.h> |
73 |
+ #include <linux/input.h> |
74 |
+ #include <linux/ioctl.h> |
75 |
+@@ -822,10 +824,10 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr); |
76 |
+ unsigned IOCTL_EVIOCGPROP = IOCTL_NOT_PRESENT; |
77 |
+ unsigned IOCTL_EVIOCSKEYCODE_V2 = IOCTL_NOT_PRESENT; |
78 |
+ #endif |
79 |
+- unsigned IOCTL_FS_IOC_GETFLAGS = FS_IOC_GETFLAGS; |
80 |
+- unsigned IOCTL_FS_IOC_GETVERSION = FS_IOC_GETVERSION; |
81 |
+- unsigned IOCTL_FS_IOC_SETFLAGS = FS_IOC_SETFLAGS; |
82 |
+- unsigned IOCTL_FS_IOC_SETVERSION = FS_IOC_SETVERSION; |
83 |
++ unsigned IOCTL_FS_IOC_GETFLAGS = _IOR('f', 1, long); |
84 |
++ unsigned IOCTL_FS_IOC_GETVERSION = _IOR('v', 1, long); |
85 |
++ unsigned IOCTL_FS_IOC_SETFLAGS = _IOW('f', 2, long); |
86 |
++ unsigned IOCTL_FS_IOC_SETVERSION = _IOW('v', 2, long); |
87 |
+ unsigned IOCTL_GIO_CMAP = GIO_CMAP; |
88 |
+ unsigned IOCTL_GIO_FONT = GIO_FONT; |
89 |
+ unsigned IOCTL_GIO_UNIMAP = GIO_UNIMAP; |
90 |
|
91 |
diff --git a/9.4.0/gentoo/README.history b/9.4.0/gentoo/README.history |
92 |
index 2adb561..e9aa4ec 100644 |
93 |
--- a/9.4.0/gentoo/README.history |
94 |
+++ b/9.4.0/gentoo/README.history |
95 |
@@ -1,3 +1,6 @@ |
96 |
+2 15 Aug 2022 |
97 |
+ + 30_all_glibc_236.patch |
98 |
+ |
99 |
1 01 June 2021 |
100 |
+ 01_all_default-fortify-source.patch |
101 |
+ 02_all_default-warn-format-security.patch |
102 |
|
103 |
diff --git a/9.5.0/gentoo/01_all_default-fortify-source.patch b/9.5.0/gentoo/01_all_default-fortify-source.patch |
104 |
new file mode 100644 |
105 |
index 0000000..d307474 |
106 |
--- /dev/null |
107 |
+++ b/9.5.0/gentoo/01_all_default-fortify-source.patch |
108 |
@@ -0,0 +1,22 @@ |
109 |
+Taken Debian's patch and removed docs matches: |
110 |
+ https://salsa.debian.org/toolchain-team/gcc.git |
111 |
+Also see https://bugs.gentoo.org/621036 where |
112 |
+initially Gentoo used too complicated macro. |
113 |
+ |
114 |
+# DP: Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, |
115 |
+# DP: if the optimization level is > 0 |
116 |
+--- a/gcc/c-family/c-cppbuiltin.c |
117 |
++++ b/gcc/c-family/c-cppbuiltin.c |
118 |
+@@ -951,6 +951,12 @@ c_cpp_builtins (cpp_reader *pfile) |
119 |
+ builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0); |
120 |
+ builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0); |
121 |
+ |
122 |
++#if !defined(ACCEL_COMPILER) |
123 |
++ /* Fortify Source enabled by default for optimization levels > 0 */ |
124 |
++ if (optimize) |
125 |
++ builtin_define_with_int_value ("_FORTIFY_SOURCE", 2); |
126 |
++#endif |
127 |
++ |
128 |
+ /* Misc. */ |
129 |
+ if (flag_gnu89_inline) |
130 |
+ cpp_define (pfile, "__GNUC_GNU_INLINE__"); |
131 |
|
132 |
diff --git a/9.5.0/gentoo/02_all_default-warn-format-security.patch b/9.5.0/gentoo/02_all_default-warn-format-security.patch |
133 |
new file mode 100644 |
134 |
index 0000000..f809abd |
135 |
--- /dev/null |
136 |
+++ b/9.5.0/gentoo/02_all_default-warn-format-security.patch |
137 |
@@ -0,0 +1,22 @@ |
138 |
+Enable -Wformat and -Wformat-security by default. |
139 |
+ |
140 |
+--- a/gcc/c-family/c.opt 2016-03-23 18:51:56.000000000 +0100 |
141 |
++++ b/gcc/c-family/c.opt 2016-04-28 23:45:54.063351272 +0200 |
142 |
+@@ -459,7 +459,7 @@ C ObjC C++ ObjC++ Var(warn_format_nonlit |
143 |
+ Warn about format strings that are not literals. |
144 |
+ |
145 |
+ Wformat-security |
146 |
+-C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) |
147 |
++C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) |
148 |
+ Warn about possible security problems with format functions. |
149 |
+ |
150 |
+ Wformat-signedness |
151 |
+@@ -475,7 +475,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_l |
152 |
+ Warn about zero-length formats. |
153 |
+ |
154 |
+ Wformat= |
155 |
+-C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2) |
156 |
++C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2) |
157 |
+ Warn about printf/scanf/strftime/strfmon format string anomalies. |
158 |
+ |
159 |
+ Wignored-qualifiers |
160 |
|
161 |
diff --git a/9.5.0/gentoo/03_all_default-warn-trampolines.patch b/9.5.0/gentoo/03_all_default-warn-trampolines.patch |
162 |
new file mode 100644 |
163 |
index 0000000..7a644cb |
164 |
--- /dev/null |
165 |
+++ b/9.5.0/gentoo/03_all_default-warn-trampolines.patch |
166 |
@@ -0,0 +1,13 @@ |
167 |
+Enable -Wtrampolines by default. |
168 |
+ |
169 |
+--- a/gcc/common.opt |
170 |
++++ b/gcc/common.opt |
171 |
+@@ -712,7 +712,7 @@ Common Var(warn_system_headers) Warning |
172 |
+ Do not suppress warnings from system headers. |
173 |
+ |
174 |
+ Wtrampolines |
175 |
+-Common Var(warn_trampolines) Warning |
176 |
++Common Var(warn_trampolines) Init(1) Warning |
177 |
+ Warn whenever a trampoline is generated. |
178 |
+ |
179 |
+ Wtype-limits |
180 |
|
181 |
diff --git a/9.5.0/gentoo/04_all_nossp-on-nostdlib.patch b/9.5.0/gentoo/04_all_nossp-on-nostdlib.patch |
182 |
new file mode 100644 |
183 |
index 0000000..648d712 |
184 |
--- /dev/null |
185 |
+++ b/9.5.0/gentoo/04_all_nossp-on-nostdlib.patch |
186 |
@@ -0,0 +1,27 @@ |
187 |
+Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding |
188 |
+ |
189 |
+https://bugs.gentoo.org/484714 |
190 |
+--- a/gcc/gcc.c 2017-07-04 09:15:57.740793000 +0200 |
191 |
++++ b/gcc/gcc.c 2018-03-02 13:58:44.387741114 +0100 |
192 |
+@@ -857,6 +857,12 @@ proper position among the other output f |
193 |
+ #define LINK_GCC_C_SEQUENCE_SPEC "%G %L %G" |
194 |
+ #endif |
195 |
+ |
196 |
++#ifdef ENABLE_DEFAULT_SSP |
197 |
++#define NO_SSP_SPEC "%{nostdlib|nodefaultlibs|ffreestanding:-fno-stack-protector} " |
198 |
++#else |
199 |
++#define NO_SSP_SPEC "" |
200 |
++#endif |
201 |
++ |
202 |
+ #ifndef LINK_SSP_SPEC |
203 |
+ #ifdef TARGET_LIBC_PROVIDES_SSP |
204 |
+ #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ |
205 |
+@@ -1131,7 +1148,7 @@ static const char *cc1_options = |
206 |
+ %{-version:--version}\ |
207 |
+ %{-help=*:--help=%*}\ |
208 |
+ %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\ |
209 |
+- %{fsyntax-only:-o %j} %{-param*}\ |
210 |
++ %{fsyntax-only:-o %j} %{-param*} " NO_SSP_SPEC "\ |
211 |
+ %{coverage:-fprofile-arcs -ftest-coverage}\ |
212 |
+ %{fprofile-arcs|fprofile-generate*|coverage:\ |
213 |
+ %{!fprofile-update=singel:\ |
214 |
|
215 |
diff --git a/9.5.0/gentoo/05_all_alpha-mieee-default.patch b/9.5.0/gentoo/05_all_alpha-mieee-default.patch |
216 |
new file mode 100644 |
217 |
index 0000000..b266d77 |
218 |
--- /dev/null |
219 |
+++ b/9.5.0/gentoo/05_all_alpha-mieee-default.patch |
220 |
@@ -0,0 +1,39 @@ |
221 |
+Set the default behavior on alpha to use -mieee since the large majority of |
222 |
+time we want this (bad/weird things can happen with packages built without |
223 |
+it). |
224 |
+ |
225 |
+To satisfy those people who may not want -mieee forced on them all the time, |
226 |
+we also provide -mno-ieee. |
227 |
+ |
228 |
+Patch by Mike Frysinger <vapier@g.o> |
229 |
+ |
230 |
+Note: upstream doesn't want to take this due to long standing behavior, and |
231 |
+because it'd make behavior across OS's inconsistent: |
232 |
+ https://gcc.gnu.org/ml/gcc-patches/2003-07/msg02144.html |
233 |
+ |
234 |
+This makes sense for upstream, but Gentoo is more concerned about packages |
235 |
+behaving the same across arches under Linux. |
236 |
+ |
237 |
+--- a/gcc/config/alpha/alpha.h |
238 |
++++ b/gcc/config/alpha/alpha.h |
239 |
+@@ -96,6 +96,8 @@ along with GCC; see the file COPYING3. If not see |
240 |
+ while (0) |
241 |
+ #endif |
242 |
+ |
243 |
++#define CPP_SPEC "%{!no-ieee:-mieee}" |
244 |
++ |
245 |
+ /* Run-time compilation parameters selecting different hardware subsets. */ |
246 |
+ |
247 |
+ /* Which processor to schedule for. The cpu attribute defines a list that |
248 |
+--- a/gcc/config/alpha/alpha.opt |
249 |
++++ b/gcc/config/alpha/alpha.opt |
250 |
+@@ -35,7 +35,7 @@ |
251 |
+ Request IEEE-conformant math library routines (OSF/1). |
252 |
+ |
253 |
+ mieee |
254 |
+-Target Report RejectNegative Mask(IEEE) |
255 |
++Target Report Mask(IEEE) |
256 |
+ Emit IEEE-conformant code, without inexact exceptions. |
257 |
+ |
258 |
+ mieee-with-inexact |
259 |
+ |
260 |
|
261 |
diff --git a/9.5.0/gentoo/06_all_ia64_note.GNU-stack.patch b/9.5.0/gentoo/06_all_ia64_note.GNU-stack.patch |
262 |
new file mode 100644 |
263 |
index 0000000..66a787e |
264 |
--- /dev/null |
265 |
+++ b/9.5.0/gentoo/06_all_ia64_note.GNU-stack.patch |
266 |
@@ -0,0 +1,92 @@ |
267 |
+http://gcc.gnu.org/PR21098 |
268 |
+ |
269 |
+ |
270 |
+2004-09-20 Jakub Jelinek <jakub@××××××.com> |
271 |
+ |
272 |
+ * config/rs6000/ppc-asm.h: Add .note.GNU-stack section also |
273 |
+ on ppc64-linux. |
274 |
+ |
275 |
+ * config/ia64/lib1funcs.asm: Add .note.GNU-stack section on |
276 |
+ ia64-linux. |
277 |
+ * config/ia64/crtbegin.asm: Likewise. |
278 |
+ * config/ia64/crtend.asm: Likewise. |
279 |
+ * config/ia64/crti.asm: Likewise. |
280 |
+ * config/ia64/crtn.asm: Likewise. |
281 |
+ |
282 |
+2004-05-14 Jakub Jelinek <jakub@××××××.com> |
283 |
+ |
284 |
+ * config/ia64/linux.h (TARGET_ASM_FILE_END): Define. |
285 |
+ |
286 |
+ |
287 |
+--- a/gcc/config/ia64/linux.h |
288 |
++++ b/gcc/config/ia64/linux.h |
289 |
+@@ -24,6 +24,8 @@ a copy of the GCC Runtime Library Exception along with this program; |
290 |
+ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
291 |
+ <http://www.gnu.org/licenses/>. */ |
292 |
+ |
293 |
++#define TARGET_ASM_FILE_END file_end_indicate_exec_stack |
294 |
++ |
295 |
+ /* This is for -profile to use -lc_p instead of -lc. */ |
296 |
+ #undef CC1_SPEC |
297 |
+ #define CC1_SPEC "%{profile:-p} %{G*}" |
298 |
+--- a/gcc/config/rs6000/ppc-asm.h |
299 |
++++ b/gcc/config/rs6000/ppc-asm.h |
300 |
+@@ -352,7 +352,7 @@ GLUE(.L,name): \ |
301 |
+ #endif |
302 |
+ #endif |
303 |
+ |
304 |
+-#if defined __linux__ && !defined __powerpc64__ |
305 |
++#if defined __linux__ |
306 |
+ .section .note.GNU-stack |
307 |
+ .previous |
308 |
+ #endif |
309 |
+--- a/libgcc/config/ia64/crtbegin.S |
310 |
++++ b/libgcc/config/ia64/crtbegin.S |
311 |
+@@ -252,3 +252,7 @@ __do_jv_register_classes: |
312 |
+ .weak __cxa_finalize |
313 |
+ #endif |
314 |
+ .weak _Jv_RegisterClasses |
315 |
++ |
316 |
++#ifdef __linux__ |
317 |
++.section .note.GNU-stack; .previous |
318 |
++#endif |
319 |
+--- a/libgcc/config/ia64/crtend.S |
320 |
++++ b/libgcc/config/ia64/crtend.S |
321 |
+@@ -119,3 +119,6 @@ __do_global_ctors_aux: |
322 |
+ |
323 |
+ br.ret.sptk.many rp |
324 |
+ .endp __do_global_ctors_aux |
325 |
++#ifdef __linux__ |
326 |
++.section .note.GNU-stack; .previous |
327 |
++#endif |
328 |
+--- a/libgcc/config/ia64/crti.S |
329 |
++++ b/libgcc/config/ia64/crti.S |
330 |
+@@ -49,5 +49,8 @@ _fini: |
331 |
+ .save rp, r33 |
332 |
+ mov r33 = b0 |
333 |
+ .body |
334 |
++#ifdef __linux__ |
335 |
++.section .note.GNU-stack; .previous |
336 |
++#endif |
337 |
+ |
338 |
+ # end of crti.S |
339 |
+--- a/libgcc/config/ia64/crtn.S |
340 |
++++ b/libgcc/config/ia64/crtn.S |
341 |
+@@ -39,5 +39,8 @@ |
342 |
+ .restore sp |
343 |
+ mov r12 = r35 |
344 |
+ br.ret.sptk.many b0 |
345 |
++#ifdef __linux__ |
346 |
++.section .note.GNU-stack; .previous |
347 |
++#endif |
348 |
+ |
349 |
+ # end of crtn.S |
350 |
+--- a/libgcc/config/ia64/lib1funcs.S |
351 |
++++ b/libgcc/config/ia64/lib1funcs.S |
352 |
+@@ -793,3 +793,6 @@ __floattitf: |
353 |
+ .endp __floattitf |
354 |
+ #endif |
355 |
+ #endif |
356 |
++#ifdef __linux__ |
357 |
++.section .note.GNU-stack; .previous |
358 |
++#endif |
359 |
|
360 |
diff --git a/9.5.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch b/9.5.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch |
361 |
new file mode 100644 |
362 |
index 0000000..7f74945 |
363 |
--- /dev/null |
364 |
+++ b/9.5.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch |
365 |
@@ -0,0 +1,54 @@ |
366 |
+--- a/libgcc/config/i386/resms64.h 2018-01-03 11:03:58.000000000 +0100 |
367 |
++++ b/libgcc/config/i386/resms64.h 2018-05-01 12:59:48.942833419 +0200 |
368 |
+@@ -57,3 +57,6 @@ MS2SYSV_STUB_END(resms64_17) |
369 |
+ MS2SYSV_STUB_END(resms64_18) |
370 |
+ |
371 |
+ #endif /* __x86_64__ */ |
372 |
++#if defined(__linux__) && defined(__ELF__) |
373 |
++.section .note.GNU-stack,"",%progbits |
374 |
++#endif |
375 |
+--- a/libgcc/config/i386/resms64f.h 2018-01-03 11:03:58.000000000 +0100 |
376 |
++++ b/libgcc/config/i386/resms64f.h 2018-05-01 13:00:23.422832853 +0200 |
377 |
+@@ -55,3 +55,6 @@ MS2SYSV_STUB_END(resms64f_16) |
378 |
+ MS2SYSV_STUB_END(resms64f_17) |
379 |
+ |
380 |
+ #endif /* __x86_64__ */ |
381 |
++#if defined(__linux__) && defined(__ELF__) |
382 |
++.section .note.GNU-stack,"",%progbits |
383 |
++#endif |
384 |
+--- a/libgcc/config/i386/resms64fx.h 2018-02-26 20:46:34.000000000 +0100 |
385 |
++++ b/libgcc/config/i386/resms64fx.h 2018-05-01 13:06:49.682826518 +0200 |
386 |
+@@ -62,3 +62,6 @@ MS2SYSV_STUB_END(resms64fx_16) |
387 |
+ MS2SYSV_STUB_END(resms64fx_17) |
388 |
+ |
389 |
+ #endif /* __x86_64__ */ |
390 |
++#if defined(__linux__) && defined(__ELF__) |
391 |
++.section .note.GNU-stack,"",%progbits |
392 |
++#endif |
393 |
+--- a/libgcc/config/i386/resms64x.h 2018-02-26 20:46:34.000000000 +0100 |
394 |
++++ b/libgcc/config/i386/resms64x.h 2018-05-01 13:07:21.702825993 +0200 |
395 |
+@@ -63,3 +63,6 @@ MS2SYSV_STUB_END(resms64x_17) |
396 |
+ MS2SYSV_STUB_END(resms64x_18) |
397 |
+ |
398 |
+ #endif /* __x86_64__ */ |
399 |
++#if defined(__linux__) && defined(__ELF__) |
400 |
++.section .note.GNU-stack,"",%progbits |
401 |
++#endif |
402 |
+--- a/libgcc/config/i386/savms64.h 2018-01-03 11:03:58.000000000 +0100 |
403 |
++++ b/libgcc/config/i386/savms64.h 2018-05-01 13:07:48.952825546 +0200 |
404 |
+@@ -57,3 +57,6 @@ MS2SYSV_STUB_END(savms64_17) |
405 |
+ MS2SYSV_STUB_END(savms64_18) |
406 |
+ |
407 |
+ #endif /* __x86_64__ */ |
408 |
++#if defined(__linux__) && defined(__ELF__) |
409 |
++.section .note.GNU-stack,"",%progbits |
410 |
++#endif |
411 |
+--- a/libgcc/config/i386/savms64f.h 2018-01-03 11:03:58.000000000 +0100 |
412 |
++++ b/libgcc/config/i386/savms64f.h 2018-05-01 13:08:30.082824871 +0200 |
413 |
+@@ -55,3 +55,6 @@ MS2SYSV_STUB_END(savms64f_16) |
414 |
+ MS2SYSV_STUB_END(savms64f_17) |
415 |
+ |
416 |
+ #endif /* __x86_64__ */ |
417 |
++#if defined(__linux__) && defined(__ELF__) |
418 |
++.section .note.GNU-stack,"",%progbits |
419 |
++#endif |
420 |
|
421 |
diff --git a/9.5.0/gentoo/08_all_libiberty-asprintf.patch b/9.5.0/gentoo/08_all_libiberty-asprintf.patch |
422 |
new file mode 100644 |
423 |
index 0000000..bee0c4c |
424 |
--- /dev/null |
425 |
+++ b/9.5.0/gentoo/08_all_libiberty-asprintf.patch |
426 |
@@ -0,0 +1,18 @@ |
427 |
+2008-07-25 Magnus Granberg <zorry@×××.nu> |
428 |
+ |
429 |
+ * include/libiberty.h (asprintf): Don't declare if defined as a macro |
430 |
+ |
431 |
+--- a/include/libiberty.h |
432 |
++++ b/include/libiberty.h |
433 |
+@@ -609,8 +609,11 @@ extern int pwait (int, int *, int); |
434 |
+ /* Like sprintf but provides a pointer to malloc'd storage, which must |
435 |
+ be freed by the caller. */ |
436 |
+ |
437 |
++/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */ |
438 |
++#ifndef asprintf |
439 |
+ extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2; |
440 |
+ #endif |
441 |
++#endif |
442 |
+ |
443 |
+ #if !HAVE_DECL_VASPRINTF |
444 |
+ /* Like vsprintf but provides a pointer to malloc'd storage, which |
445 |
|
446 |
diff --git a/9.5.0/gentoo/09_all_libiberty-pic.patch b/9.5.0/gentoo/09_all_libiberty-pic.patch |
447 |
new file mode 100644 |
448 |
index 0000000..b6160a7 |
449 |
--- /dev/null |
450 |
+++ b/9.5.0/gentoo/09_all_libiberty-pic.patch |
451 |
@@ -0,0 +1,10 @@ |
452 |
+--- a/libiberty/Makefile.in |
453 |
++++ b/libiberty/Makefile.in |
454 |
+@@ -246,6 +246,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) |
455 |
+ $(AR) $(AR_FLAGS) $(TARGETLIB) \ |
456 |
+ $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ |
457 |
+ $(RANLIB) $(TARGETLIB); \ |
458 |
++ cp $(TARGETLIB) ../ ; \ |
459 |
+ cd ..; \ |
460 |
+ else true; fi |
461 |
+ |
462 |
|
463 |
diff --git a/9.5.0/gentoo/10_all_nopie-all-flags.patch b/9.5.0/gentoo/10_all_nopie-all-flags.patch |
464 |
new file mode 100644 |
465 |
index 0000000..48536e6 |
466 |
--- /dev/null |
467 |
+++ b/9.5.0/gentoo/10_all_nopie-all-flags.patch |
468 |
@@ -0,0 +1,18 @@ |
469 |
+We need to pass NO_PIE_CFLAGS to ALL_* so gcc don't fail when |
470 |
+we compile it with older gcc and pie. |
471 |
+ |
472 |
+--- a/gcc/Makefile.in 2015-06-25 19:18:12.000000000 +0200 |
473 |
++++ b/gcc/Makefile.in 2016-04-22 00:12:54.029178860 +0200 |
474 |
+@@ -991,10 +991,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) |
475 |
+ ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) |
476 |
+ |
477 |
+ # This is the variable to use when using $(COMPILER). |
478 |
+-ALL_COMPILERFLAGS = $(ALL_CXXFLAGS) |
479 |
++ALL_COMPILERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) |
480 |
+ |
481 |
+ # This is the variable to use when using $(LINKER). |
482 |
+-ALL_LINKERFLAGS = $(ALL_CXXFLAGS) |
483 |
++ALL_LINKERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) |
484 |
+ |
485 |
+ # Build and host support libraries. |
486 |
+ |
487 |
|
488 |
diff --git a/9.5.0/gentoo/11_all_extra-options.patch b/9.5.0/gentoo/11_all_extra-options.patch |
489 |
new file mode 100644 |
490 |
index 0000000..42c288c |
491 |
--- /dev/null |
492 |
+++ b/9.5.0/gentoo/11_all_extra-options.patch |
493 |
@@ -0,0 +1,89 @@ |
494 |
+On Hardened we add some options like -fstack-clash-protection and -z now |
495 |
+ |
496 |
+--- a/gcc/common.opt 2018-03-28 16:51:09.000000000 +0200 |
497 |
++++ a/gcc/common.opt 2018-04-30 15:35:55.274096877 +0200 |
498 |
+@@ -2367,7 +2367,7 @@ Common Alias(fstack-check=, specific, no |
499 |
+ Insert stack checking code into the program. Same as -fstack-check=specific. |
500 |
+ |
501 |
+ fstack-clash-protection |
502 |
+-Common Report Var(flag_stack_clash_protection) Optimization |
503 |
++Common Report Var(flag_stack_clash_protection) Optimization Init(-1) |
504 |
+ Insert code to probe each page of stack space as it is allocated to protect |
505 |
+ from stack-clash style attacks. |
506 |
+ |
507 |
+--- a/gcc/defaults.h 2018-01-03 11:03:58.000000000 +0100 |
508 |
++++ b/gcc/defaults.h 2018-05-01 12:41:29.522851451 +0200 |
509 |
+@@ -1435,6 +1435,15 @@ see the files COPYING3 and COPYING.RUNTI |
510 |
+ #define STACK_CHECK_MAX_VAR_SIZE (STACK_CHECK_MAX_FRAME_SIZE / 100) |
511 |
+ #endif |
512 |
+ |
513 |
++/* Default value for flag_clash_protector when flag_clash_protector is |
514 |
++ initialized to -1. */ |
515 |
++#ifdef EXTRA_OPTIONS |
516 |
++#define DEFAULT_FLAG_SCP 1 |
517 |
++#endif |
518 |
++#ifndef DEFAULT_FLAG_SCP |
519 |
++#define DEFAULT_FLAG_SCP 0 |
520 |
++#endif |
521 |
++ |
522 |
+ /* By default, the C++ compiler will use function addresses in the |
523 |
+ vtable entries. Setting this nonzero tells the compiler to use |
524 |
+ function descriptors instead. The value of this macro says how |
525 |
+--- a/gcc/toplev.c 2018-02-13 17:18:37.000000000 +0100 |
526 |
++++ b/gcc/toplev.c 2018-04-30 16:46:37.244027303 +0200 |
527 |
+@@ -1682,6 +1682,10 @@ process_options (void) |
528 |
+ |
529 |
+ /* -fstack-clash-protection is not currently supported on targets |
530 |
+ where the stack grows up. */ |
531 |
++ if (flag_stack_clash_protection == -1) |
532 |
++ { |
533 |
++ flag_stack_clash_protection = DEFAULT_FLAG_SCP; |
534 |
++ } |
535 |
+ if (flag_stack_clash_protection && !STACK_GROWS_DOWNWARD) |
536 |
+ { |
537 |
+ warning_at (UNKNOWN_LOCATION, 0, |
538 |
+ |
539 |
+--- a/libgcc/Makefile.in 2011-11-22 04:01:02.000000000 +0100 |
540 |
++++ b/libgcc/Makefile.in 2011-12-25 15:18:22.449610631 +0100 |
541 |
+@@ -225,7 +225,7 @@ endif |
542 |
+ LIBGCC2_DEBUG_CFLAGS = -g |
543 |
+ LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \ |
544 |
+ $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \ |
545 |
+- -fbuilding-libgcc -fno-stack-protector \ |
546 |
++ -fbuilding-libgcc -fno-stack-protector -fno-stack-clash-protection \ |
547 |
+ $(INHIBIT_LIBC_CFLAGS) |
548 |
+ |
549 |
+ # Additional options to use when compiling libgcc2.a. |
550 |
+@@ -279,7 +290,7 @@ INTERNAL_CFLAGS = $(CFLAGS) $(LIBGCC2_CF |
551 |
+ -finhibit-size-directive -fno-inline -fno-exceptions \ |
552 |
+ -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \ |
553 |
+ -fbuilding-libgcc -fno-stack-protector $(FORCE_EXPLICIT_EH_REGISTRY) \ |
554 |
+- $(INHIBIT_LIBC_CFLAGS) |
555 |
++ -fno-stack-clash-protection $(INHIBIT_LIBC_CFLAGS) |
556 |
+ |
557 |
+ # Extra flags to use when compiling crt{begin,end}.o. |
558 |
+ CRTSTUFF_T_CFLAGS = |
559 |
+--- a/gcc/gcc.c 2016-02-19 23:18:38.000000000 +0100 |
560 |
++++ b/gcc/gcc.c 2016-05-02 22:56:10.185721270 +0200 |
561 |
+@@ -868,6 +868,12 @@ proper position among the other output f |
562 |
+ #endif |
563 |
+ #endif |
564 |
+ |
565 |
++#ifdef EXTRA_OPTIONS |
566 |
++#define LINK_NOW_SPEC "%{!nonow:-z now} " |
567 |
++#else |
568 |
++#define LINK_NOW_SPEC "" |
569 |
++#endif |
570 |
++ |
571 |
+ #ifdef ENABLE_DEFAULT_PIE |
572 |
+ #define NO_PIE_SPEC "no-pie|static" |
573 |
+ #define PIE_SPEC NO_PIE_SPEC "|r|shared:;" |
574 |
+@@ -1013,7 +1020,7 @@ proper position among the other output f |
575 |
+ %(linker) " \ |
576 |
+ LINK_PLUGIN_SPEC \ |
577 |
+ "%{flto|flto=*:%<fcompare-debug*} \ |
578 |
+- %{flto} %{fno-lto} %{flto=*} %l " LINK_PIE_SPEC \ |
579 |
++ %{flto} %{fno-lto} %{flto=*} %l " LINK_PIE_SPEC LINK_NOW_SPEC \ |
580 |
+ "%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \ |
581 |
+ "%X %{o*} %{e*} %{N} %{n} %{r}\ |
582 |
+ %{s} %{t} %{u*} %{z} %{Z} %{!nostdlib:%{!nostartfiles:%S}} \ |
583 |
|
584 |
diff --git a/9.5.0/gentoo/12_all_pr55930-dependency-tracking.patch b/9.5.0/gentoo/12_all_pr55930-dependency-tracking.patch |
585 |
new file mode 100644 |
586 |
index 0000000..a8743e0 |
587 |
--- /dev/null |
588 |
+++ b/9.5.0/gentoo/12_all_pr55930-dependency-tracking.patch |
589 |
@@ -0,0 +1,18 @@ |
590 |
+libatomic build failure if configured with --disable-dependency-tracking |
591 |
+load_n.c:115:1: fatal error: opening dependency file .deps/load_1_.lo.Ppo: No such file or directory |
592 |
+ |
593 |
+https://bugs.gentoo.org/463463 |
594 |
+http://gcc.gnu.org/PR55930 |
595 |
+ |
596 |
+--- a/libatomic/Makefile.in |
597 |
++++ b/libatomic/Makefile.in |
598 |
+@@ -298,7 +298,8 @@ PAT_N = $(word 2,$(PAT_SPLIT)) |
599 |
+ PAT_S = $(word 3,$(PAT_SPLIT)) |
600 |
+ IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) |
601 |
+ IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) |
602 |
+-M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo |
603 |
++@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo |
604 |
++@AMDEP_FALSE@M_DEPS = |
605 |
+ M_SIZE = -DN=$(PAT_N) |
606 |
+ M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) |
607 |
+ M_FILE = $(PAT_BASE)_n.c |
608 |
|
609 |
diff --git a/9.5.0/gentoo/13_all_sh-drop-sysroot-suffix.patch b/9.5.0/gentoo/13_all_sh-drop-sysroot-suffix.patch |
610 |
new file mode 100644 |
611 |
index 0000000..3dadd4c |
612 |
--- /dev/null |
613 |
+++ b/9.5.0/gentoo/13_all_sh-drop-sysroot-suffix.patch |
614 |
@@ -0,0 +1,32 @@ |
615 |
+From 5eeeff19bb4978a8d3c0d53bc81744bc25d82993 Mon Sep 17 00:00:00 2001 |
616 |
+From: Sergei Trofimovich <slyfox@g.o> |
617 |
+Date: Sat, 14 Apr 2018 13:07:39 +0100 |
618 |
+Subject: [PATCH] gcc/config.gcc: sh-*: Disable sysroot-suffix (PR42947) |
619 |
+ |
620 |
+sh-* is a multilib target. It is also one of 2 sysroot-prefix targets. |
621 |
+Unfortunately two options do not mix well. Attempt to use default |
622 |
+multilib flavour always prepends sysroot-prefix. |
623 |
+ |
624 |
+Bug: https://bugs.gentoo.org/511548 |
625 |
+Bug: https://gcc.gnu.org/PR42947 |
626 |
+Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
627 |
+--- |
628 |
+ gcc/config.gcc | 2 -- |
629 |
+ 1 file changed, 2 deletions(-) |
630 |
+ |
631 |
+diff --git a/gcc/config.gcc b/gcc/config.gcc |
632 |
+index 55c314afdbd..c320f24f123 100644 |
633 |
+--- a/gcc/config.gcc |
634 |
++++ b/gcc/config.gcc |
635 |
+@@ -2866,8 +2866,6 @@ sh-*-elf* | sh[12346l]*-*-elf* | \ |
636 |
+ if test x${enable_incomplete_targets} = xyes ; then |
637 |
+ tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1" |
638 |
+ fi |
639 |
+- tm_file="$tm_file ./sysroot-suffix.h" |
640 |
+- tmake_file="$tmake_file t-sysroot-suffix" |
641 |
+ ;; |
642 |
+ sh-*-rtems*) |
643 |
+ tmake_file="${tmake_file} sh/t-sh sh/t-rtems" |
644 |
+-- |
645 |
+2.17.0 |
646 |
+ |
647 |
|
648 |
diff --git a/9.5.0/gentoo/14_all_ia64-TEXTREL.patch b/9.5.0/gentoo/14_all_ia64-TEXTREL.patch |
649 |
new file mode 100644 |
650 |
index 0000000..706dbe5 |
651 |
--- /dev/null |
652 |
+++ b/9.5.0/gentoo/14_all_ia64-TEXTREL.patch |
653 |
@@ -0,0 +1,22 @@ |
654 |
+Fix textrels on -rdynamic binaries: |
655 |
+Bug: https://gcc.gnu.org/PR84553 |
656 |
+Bug: https://bugs.gentoo.org/566118 |
657 |
+--- a/gcc/config/ia64/ia64.c |
658 |
++++ a/gcc/config/ia64/ia64.c |
659 |
+@@ -10838,12 +10838,14 @@ ia64_hpux_reloc_rw_mask (void) |
660 |
+ |
661 |
+ /* For others, relax this so that relocations to local data goes in |
662 |
+ read-only segments, but we still cannot allow global relocations |
663 |
+- in read-only segments. */ |
664 |
++ in read-only segments. Except that use of -rdynamic at link time |
665 |
++ may make any local data global, so we can't allow local data in |
666 |
++ read-only segments either. */ |
667 |
+ |
668 |
+ static int |
669 |
+ ia64_reloc_rw_mask (void) |
670 |
+ { |
671 |
+- return flag_pic ? 3 : 2; |
672 |
++ return flag_pic ? 3 : 3; |
673 |
+ } |
674 |
+ |
675 |
+ /* Return the section to use for X. The only special thing we do here |
676 |
|
677 |
diff --git a/9.5.0/gentoo/15_all_disable-systemtap-switch.patch b/9.5.0/gentoo/15_all_disable-systemtap-switch.patch |
678 |
new file mode 100644 |
679 |
index 0000000..d5ae8d0 |
680 |
--- /dev/null |
681 |
+++ b/9.5.0/gentoo/15_all_disable-systemtap-switch.patch |
682 |
@@ -0,0 +1,122 @@ |
683 |
+From bb510ed7ea82093c924b027489db6f92250a85b3 Mon Sep 17 00:00:00 2001 |
684 |
+From: Sergei Trofimovich <slyfox@g.o> |
685 |
+Date: Sat, 12 May 2018 12:56:46 +0100 |
686 |
+Subject: [PATCH] gcc/configure.ac: add --disable-systemtap switch |
687 |
+ |
688 |
+Before the change systemtap probes were enabled |
689 |
+if target headers had sys/sdt.h at ./configure time. |
690 |
+ |
691 |
+After the change explicitly ask to enable or disable |
692 |
+for probe support and not rely on automagic dependency |
693 |
+discovery. |
694 |
+ |
695 |
+Bug: https://bugs.gentoo.org/654748 |
696 |
+Bug: https://gcc.gnu.org/bugzilla/PR61257 |
697 |
+Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
698 |
+--- |
699 |
+ gcc/configure | 34 ++++++++++++++++++++++++++-------- |
700 |
+ gcc/configure.ac | 30 ++++++++++++++++++++++-------- |
701 |
+ 2 files changed, 48 insertions(+), 16 deletions(-) |
702 |
+ |
703 |
+diff --git a/gcc/configure b/gcc/configure |
704 |
+index 3dcf7752b..c2049f117 100755 |
705 |
+--- a/gcc/configure |
706 |
++++ b/gcc/configure |
707 |
+@@ -988,6 +988,7 @@ enable_gnu_unique_object |
708 |
+ enable_linker_build_id |
709 |
+ enable_libssp |
710 |
+ enable_default_ssp |
711 |
++enable_systemtap |
712 |
+ with_long_double_128 |
713 |
+ with_long_double_format |
714 |
+ with_gc |
715 |
+@@ -1740,6 +1741,7 @@ Optional Features: |
716 |
+ compiler will always pass --build-id to linker |
717 |
+ --enable-libssp enable linking against libssp |
718 |
+ --enable-default-ssp enable Stack Smashing Protection as default |
719 |
++ --disable-systemtap enable systemtap static probe points [default=auto] |
720 |
+ --enable-maintainer-mode |
721 |
+ enable make rules and dependencies not useful (and |
722 |
+ sometimes confusing) to the casual installer |
723 |
+@@ -29330,17 +29332,33 @@ fi |
724 |
+ |
725 |
+ # Test for <sys/sdt.h> on the target. |
726 |
+ |
727 |
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 |
728 |
++ |
729 |
++# Check whether --enable-systemtap was given. |
730 |
++if test "${enable_systemtap+set}" = set; then : |
731 |
++ enableval=$enable_systemtap; enable_systemtap=$enableval |
732 |
++else |
733 |
++ enable_systemtap=auto |
734 |
++fi |
735 |
++ |
736 |
++ |
737 |
++if test x$enable_systemtap != xno; then |
738 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 |
739 |
+ $as_echo_n "checking sys/sdt.h in the target C library... " >&6; } |
740 |
+-have_sys_sdt_h=no |
741 |
+-if test -f $target_header_dir/sys/sdt.h; then |
742 |
+- have_sys_sdt_h=yes |
743 |
++ have_sys_sdt_h=no |
744 |
++ if test -f $target_header_dir/sys/sdt.h ; then |
745 |
++ have_sys_sdt_h=yes |
746 |
+ |
747 |
+ $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h |
748 |
+ |
749 |
+-fi |
750 |
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 |
751 |
++ fi |
752 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 |
753 |
+ $as_echo "$have_sys_sdt_h" >&6; } |
754 |
++ if test x$enable_systemtap = xyes ; then |
755 |
++ if test x$have_sys_sdt_h = xno ; then |
756 |
++ as_fn_error $? "sys/sdt.h was not found" "$LINENO" 5 |
757 |
++ fi |
758 |
++ fi |
759 |
++fi |
760 |
+ |
761 |
+ # Check if TFmode long double should be used by default or not. |
762 |
+ # Some glibc targets used DFmode long double, but with glibc 2.4 |
763 |
+--- a/gcc/configure.ac |
764 |
++++ b/gcc/configure.ac |
765 |
+@@ -6000,14 +6000,28 @@ AC_SUBST([enable_default_ssp]) |
766 |
+ |
767 |
+ # Test for <sys/sdt.h> on the target. |
768 |
+ GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) |
769 |
+-AC_MSG_CHECKING(sys/sdt.h in the target C library) |
770 |
+-have_sys_sdt_h=no |
771 |
+-if test -f $target_header_dir/sys/sdt.h; then |
772 |
+- have_sys_sdt_h=yes |
773 |
+- AC_DEFINE(HAVE_SYS_SDT_H, 1, |
774 |
+- [Define if your target C library provides sys/sdt.h]) |
775 |
+-fi |
776 |
+-AC_MSG_RESULT($have_sys_sdt_h) |
777 |
++ |
778 |
++AC_ARG_ENABLE(systemtap, |
779 |
++[AS_HELP_STRING([--disable-systemtap], |
780 |
++ [enable systemtap static probe points [default=auto]])], |
781 |
++ enable_systemtap=$enableval, |
782 |
++ enable_systemtap=auto) |
783 |
++ |
784 |
++if test x$enable_systemtap != xno; then |
785 |
++ AC_MSG_CHECKING(sys/sdt.h in the target C library) |
786 |
++ have_sys_sdt_h=no |
787 |
++ if test -f $target_header_dir/sys/sdt.h ; then |
788 |
++ have_sys_sdt_h=yes |
789 |
++ AC_DEFINE(HAVE_SYS_SDT_H, 1, |
790 |
++ [Define if your target C library provides sys/sdt.h]) |
791 |
++ fi |
792 |
++ AC_MSG_RESULT($have_sys_sdt_h) |
793 |
++ if test x$enable_systemtap = xyes ; then |
794 |
++ if test x$have_sys_sdt_h = xno ; then |
795 |
++ AC_MSG_ERROR([sys/sdt.h was not found]) |
796 |
++ fi |
797 |
++ fi |
798 |
++fi |
799 |
+ |
800 |
+ # Check if TFmode long double should be used by default or not. |
801 |
+ # Some glibc targets used DFmode long double, but with glibc 2.4 |
802 |
+-- |
803 |
+2.17.0 |
804 |
+ |
805 |
|
806 |
diff --git a/9.5.0/gentoo/16_all_m68k-textrel-on-libgcc.patch b/9.5.0/gentoo/16_all_m68k-textrel-on-libgcc.patch |
807 |
new file mode 100644 |
808 |
index 0000000..a2aa100 |
809 |
--- /dev/null |
810 |
+++ b/9.5.0/gentoo/16_all_m68k-textrel-on-libgcc.patch |
811 |
@@ -0,0 +1,93 @@ |
812 |
+https://gcc.gnu.org/PR86224 |
813 |
+ |
814 |
+From 1d89df42bdaf0745fd2a0d294471ac16f0553707 Mon Sep 17 00:00:00 2001 |
815 |
+From: Sergei Trofimovich <slyfox@g.o> |
816 |
+Date: Sat, 28 Jul 2018 11:33:27 +0100 |
817 |
+Subject: [PATCH] libgcc: m68k: avoid absolute relocation in shared library |
818 |
+ |
819 |
+Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
820 |
+--- |
821 |
+ libgcc/config/m68k/lb1sf68.S | 19 ++++++++++++++----- |
822 |
+ 1 file changed, 14 insertions(+), 5 deletions(-) |
823 |
+ |
824 |
+diff --git a/libgcc/config/m68k/lb1sf68.S b/libgcc/config/m68k/lb1sf68.S |
825 |
+index 325a7c17d9b..16c6dc3f5a7 100644 |
826 |
+--- a/libgcc/config/m68k/lb1sf68.S |
827 |
++++ b/libgcc/config/m68k/lb1sf68.S |
828 |
+@@ -435,7 +435,10 @@ $_exception_handler: |
829 |
+ .text |
830 |
+ FUNC(__mulsi3) |
831 |
+ .globl SYM (__mulsi3) |
832 |
++ .globl SYM (__mulsi3_internal) |
833 |
++ .hidden SYM (__mulsi3_internal) |
834 |
+ SYM (__mulsi3): |
835 |
++SYM (__mulsi3_internal): |
836 |
+ movew sp@(4), d0 /* x0 -> d0 */ |
837 |
+ muluw sp@(10), d0 /* x0*y1 */ |
838 |
+ movew sp@(6), d1 /* x1 -> d1 */ |
839 |
+@@ -458,7 +461,10 @@ SYM (__mulsi3): |
840 |
+ .text |
841 |
+ FUNC(__udivsi3) |
842 |
+ .globl SYM (__udivsi3) |
843 |
++ .globl SYM (__udivsi3_internal) |
844 |
++ .hidden SYM (__udivsi3_internal) |
845 |
+ SYM (__udivsi3): |
846 |
++SYM (__udivsi3_internal): |
847 |
+ #ifndef __mcoldfire__ |
848 |
+ movel d2, sp@- |
849 |
+ movel sp@(12), d1 /* d1 = divisor */ |
850 |
+@@ -534,7 +540,10 @@ L2: subql IMM (1),d4 |
851 |
+ .text |
852 |
+ FUNC(__divsi3) |
853 |
+ .globl SYM (__divsi3) |
854 |
++ .globl SYM (__divsi3_internal) |
855 |
++ .hidden SYM (__divsi3_internal) |
856 |
+ SYM (__divsi3): |
857 |
++SYM (__divsi3_internal): |
858 |
+ movel d2, sp@- |
859 |
+ |
860 |
+ moveq IMM (1), d2 /* sign of result stored in d2 (=1 or =-1) */ |
861 |
+@@ -557,7 +566,7 @@ L1: movel sp@(8), d0 /* d0 = dividend */ |
862 |
+ |
863 |
+ L2: movel d1, sp@- |
864 |
+ movel d0, sp@- |
865 |
+- PICCALL SYM (__udivsi3) /* divide abs(dividend) by abs(divisor) */ |
866 |
++ PICCALL SYM (__udivsi3_internal) /* divide abs(dividend) by abs(divisor) */ |
867 |
+ addql IMM (8), sp |
868 |
+ |
869 |
+ tstb d2 |
870 |
+@@ -577,13 +586,13 @@ SYM (__umodsi3): |
871 |
+ movel sp@(4), d0 /* d0 = dividend */ |
872 |
+ movel d1, sp@- |
873 |
+ movel d0, sp@- |
874 |
+- PICCALL SYM (__udivsi3) |
875 |
++ PICCALL SYM (__udivsi3_internal) |
876 |
+ addql IMM (8), sp |
877 |
+ movel sp@(8), d1 /* d1 = divisor */ |
878 |
+ #ifndef __mcoldfire__ |
879 |
+ movel d1, sp@- |
880 |
+ movel d0, sp@- |
881 |
+- PICCALL SYM (__mulsi3) /* d0 = (a/b)*b */ |
882 |
++ PICCALL SYM (__mulsi3_internal) /* d0 = (a/b)*b */ |
883 |
+ addql IMM (8), sp |
884 |
+ #else |
885 |
+ mulsl d1,d0 |
886 |
+@@ -603,13 +612,13 @@ SYM (__modsi3): |
887 |
+ movel sp@(4), d0 /* d0 = dividend */ |
888 |
+ movel d1, sp@- |
889 |
+ movel d0, sp@- |
890 |
+- PICCALL SYM (__divsi3) |
891 |
++ PICCALL SYM (__divsi3_internal) |
892 |
+ addql IMM (8), sp |
893 |
+ movel sp@(8), d1 /* d1 = divisor */ |
894 |
+ #ifndef __mcoldfire__ |
895 |
+ movel d1, sp@- |
896 |
+ movel d0, sp@- |
897 |
+- PICCALL SYM (__mulsi3) /* d0 = (a/b)*b */ |
898 |
++ PICCALL SYM (__mulsi3_internal) /* d0 = (a/b)*b */ |
899 |
+ addql IMM (8), sp |
900 |
+ #else |
901 |
+ mulsl d1,d0 |
902 |
+-- |
903 |
+2.18.0 |
904 |
+ |
905 |
|
906 |
diff --git a/9.5.0/gentoo/17_all_respect-build-cxxflags.patch b/9.5.0/gentoo/17_all_respect-build-cxxflags.patch |
907 |
new file mode 100644 |
908 |
index 0000000..14139ea |
909 |
--- /dev/null |
910 |
+++ b/9.5.0/gentoo/17_all_respect-build-cxxflags.patch |
911 |
@@ -0,0 +1,39 @@ |
912 |
+Pass CXXFLAGS as CXXFLAGS_FOR_BUILD to stage1. |
913 |
+ |
914 |
+Fixes build failure when CXXFLAGS contains |
915 |
+TARGET-specific flags. |
916 |
+ |
917 |
+Tested on x86_64-pc-linux-gnu host as: |
918 |
+ # CFLAGS='-O2 -mfpu=neon-vfpv4' CXXFLAGS='-O2 -mfpu=neon-vfpv4' \ |
919 |
+ armv7a-unknown-linux-gnueabihf-emerge -v1 sys-devel/gcc --quiet-build=n |
920 |
+ |
921 |
+Fix by Peter Levine. |
922 |
+https://bugs.gentoo.org/581406 |
923 |
+--- a/Makefile.in |
924 |
++++ b/Makefile.in |
925 |
+@@ -170,6 +170,7 @@ |
926 |
+ # built for the build system to override those in BASE_FLAGS_TO_PASS. |
927 |
+ EXTRA_BUILD_FLAGS = \ |
928 |
+ CFLAGS="$(CFLAGS_FOR_BUILD)" \ |
929 |
++ CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ |
930 |
+ LDFLAGS="$(LDFLAGS_FOR_BUILD)" |
931 |
+ |
932 |
+ # This is the list of directories to built for the host system. |
933 |
+@@ -710,6 +711,7 @@ |
934 |
+ "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
935 |
+ "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
936 |
+ "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
937 |
++ "CXXFLAGS_FOR_BUILD=$(CXXFLAGS_FOR_BUILD)" \ |
938 |
+ "EXPECT=$(EXPECT)" \ |
939 |
+ "FLEX=$(FLEX)" \ |
940 |
+ "INSTALL=$(INSTALL)" \ |
941 |
+--- a/Makefile.tpl |
942 |
++++ b/Makefile.tpl |
943 |
+@@ -172,6 +172,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 |
|
952 |
diff --git a/9.5.0/gentoo/18_all_libgfortran-Werror.patch b/9.5.0/gentoo/18_all_libgfortran-Werror.patch |
953 |
new file mode 100644 |
954 |
index 0000000..f6c26bf |
955 |
--- /dev/null |
956 |
+++ b/9.5.0/gentoo/18_all_libgfortran-Werror.patch |
957 |
@@ -0,0 +1,20 @@ |
958 |
+libgfortran does not respect --disable-werror |
959 |
+ |
960 |
+https://bugs.gentoo.org/433435 |
961 |
+http://gcc.gnu.org/PR54724 |
962 |
+ |
963 |
+ |
964 |
+--- a/libgfortran/configure.ac |
965 |
++++ b/libgfortran/configure.ac |
966 |
+@@ -140,3 +140,3 @@ AM_PROG_CC_C_O |
967 |
+ if test "x$GCC" = "xyes"; then |
968 |
+- AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |
969 |
++ AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring" |
970 |
+ ## We like to use C11 and C99 routines when available. This makes |
971 |
+--- a/libgfortran/configure |
972 |
++++ b/libgfortran/configure |
973 |
+@@ -5764,3 +5764,3 @@ fi |
974 |
+ # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
975 |
+ if test "x$GCC" = "xyes"; then |
976 |
+- AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |
977 |
++ AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring" |
978 |
|
979 |
diff --git a/9.5.0/gentoo/19_all_libgomp-Werror.patch b/9.5.0/gentoo/19_all_libgomp-Werror.patch |
980 |
new file mode 100644 |
981 |
index 0000000..416808a |
982 |
--- /dev/null |
983 |
+++ b/9.5.0/gentoo/19_all_libgomp-Werror.patch |
984 |
@@ -0,0 +1,20 @@ |
985 |
+libgomp does not respect --disable-werror |
986 |
+ |
987 |
+https://bugs.gentoo.org/229059 |
988 |
+http://gcc.gnu.org/PR38436 |
989 |
+--- a/libgomp/configure.ac |
990 |
++++ b/libgomp/configure.ac |
991 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
992 |
+ # Add -Wall -Werror if we are using GCC. |
993 |
+ if test "x$GCC" = "xyes"; then |
994 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
995 |
++ XCFLAGS="$XCFLAGS -Wall" |
996 |
+ fi |
997 |
+--- a/libgomp/configure |
998 |
++++ b/libgomp/configure |
999 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1000 |
+ # Add -Wall -Werror if we are using GCC. |
1001 |
+ if test "x$GCC" = "xyes"; then |
1002 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1003 |
++ XCFLAGS="$XCFLAGS -Wall" |
1004 |
+ fi |
1005 |
|
1006 |
diff --git a/9.5.0/gentoo/20_all_libitm-Werror.patch b/9.5.0/gentoo/20_all_libitm-Werror.patch |
1007 |
new file mode 100644 |
1008 |
index 0000000..27181e0 |
1009 |
--- /dev/null |
1010 |
+++ b/9.5.0/gentoo/20_all_libitm-Werror.patch |
1011 |
@@ -0,0 +1,19 @@ |
1012 |
+libitm does not respect --disable-werror |
1013 |
+ |
1014 |
+https://bugs.gentoo.org/475350 |
1015 |
+--- a/libitm/configure.ac |
1016 |
++++ b/libitm/configure.ac |
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 |
+--- a/libitm/configure |
1024 |
++++ b/libitm/configure |
1025 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1026 |
+ # Add -Wall -Werror if we are using GCC. |
1027 |
+ if test "x$GCC" = "xyes"; then |
1028 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1029 |
++ XCFLAGS="$XCFLAGS -Wall" |
1030 |
+ fi |
1031 |
|
1032 |
diff --git a/9.5.0/gentoo/21_all_libatomic-Werror.patch b/9.5.0/gentoo/21_all_libatomic-Werror.patch |
1033 |
new file mode 100644 |
1034 |
index 0000000..0550722 |
1035 |
--- /dev/null |
1036 |
+++ b/9.5.0/gentoo/21_all_libatomic-Werror.patch |
1037 |
@@ -0,0 +1,19 @@ |
1038 |
+libatomic does not respect --disable-werror |
1039 |
+ |
1040 |
+https://bugs.gentoo.org/475350 |
1041 |
+--- a/libatomic/configure.ac |
1042 |
++++ b/libatomic/configure.ac |
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 |
+--- a/libatomic/configure |
1050 |
++++ b/libatomic/configure |
1051 |
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" |
1052 |
+ # Add -Wall -Werror if we are using GCC. |
1053 |
+ if test "x$GCC" = "xyes"; then |
1054 |
+- XCFLAGS="$XCFLAGS -Wall -Werror" |
1055 |
++ XCFLAGS="$XCFLAGS -Wall" |
1056 |
+ fi |
1057 |
|
1058 |
diff --git a/9.5.0/gentoo/22_all_libbacktrace-Werror.patch b/9.5.0/gentoo/22_all_libbacktrace-Werror.patch |
1059 |
new file mode 100644 |
1060 |
index 0000000..57dd284 |
1061 |
--- /dev/null |
1062 |
+++ b/9.5.0/gentoo/22_all_libbacktrace-Werror.patch |
1063 |
@@ -0,0 +1,17 @@ |
1064 |
+libbacktrace does not respect --disable-werror |
1065 |
+ |
1066 |
+https://bugs.gentoo.org/667104 |
1067 |
+--- a/libbacktrace/configure |
1068 |
++++ b/libbacktrace/configure |
1069 |
+@@ -11634,3 +11634,3 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1070 |
+ if test -n "${with_target_subdir}"; then |
1071 |
+- WARN_FLAGS="$WARN_FLAGS -Werror" |
1072 |
++ WARN_FLAGS="$WARN_FLAGS" |
1073 |
+ fi |
1074 |
+--- a/libbacktrace/configure.ac |
1075 |
++++ b/libbacktrace/configure.ac |
1076 |
+@@ -138,3 +138,3 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \ |
1077 |
+ if test -n "${with_target_subdir}"; then |
1078 |
+- WARN_FLAGS="$WARN_FLAGS -Werror" |
1079 |
++ WARN_FLAGS="$WARN_FLAGS" |
1080 |
+ fi |
1081 |
|
1082 |
diff --git a/9.5.0/gentoo/23_all_libsanitizer-Werror.patch b/9.5.0/gentoo/23_all_libsanitizer-Werror.patch |
1083 |
new file mode 100644 |
1084 |
index 0000000..0e484a4 |
1085 |
--- /dev/null |
1086 |
+++ b/9.5.0/gentoo/23_all_libsanitizer-Werror.patch |
1087 |
@@ -0,0 +1,17 @@ |
1088 |
+libsanitizer does not respect --disable-werror |
1089 |
+ |
1090 |
+https://bugs.gentoo.org/667104 |
1091 |
+--- a/libsanitizer/libbacktrace/Makefile.am |
1092 |
++++ b/libsanitizer/libbacktrace/Makefile.am |
1093 |
+@@ -37,3 +37,3 @@ AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \ |
1094 |
+ WARN_FLAGS = -W -Wall -Wwrite-strings -Wmissing-format-attribute \ |
1095 |
+- -Wcast-qual -Werror |
1096 |
++ -Wcast-qual |
1097 |
+ C_WARN_FLAGS = $(WARN_FLAGS) -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition |
1098 |
+--- a/libsanitizer/libbacktrace/Makefile.in |
1099 |
++++ b/libsanitizer/libbacktrace/Makefile.in |
1100 |
+@@ -297,3 +297,3 @@ AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \ |
1101 |
+ WARN_FLAGS = -W -Wall -Wwrite-strings -Wmissing-format-attribute \ |
1102 |
+- -Wcast-qual -Werror |
1103 |
++ -Wcast-qual |
1104 |
+ |
1105 |
|
1106 |
diff --git a/9.5.0/gentoo/24_all_libstdcxx-no-vtv.patch b/9.5.0/gentoo/24_all_libstdcxx-no-vtv.patch |
1107 |
new file mode 100644 |
1108 |
index 0000000..68508bd |
1109 |
--- /dev/null |
1110 |
+++ b/9.5.0/gentoo/24_all_libstdcxx-no-vtv.patch |
1111 |
@@ -0,0 +1,61 @@ |
1112 |
+Final libstdc++.so should not contain rpath to make libvtv usable. |
1113 |
+It's up to final binaries to link against proper libvtv. |
1114 |
+ |
1115 |
+Bug: https://bugs.gentoo.org/582524 |
1116 |
+Bug: https://gcc.gnu.org/PR85884 |
1117 |
+--- a/libstdc++-v3/src/Makefile.am |
1118 |
++++ b/libstdc++-v3/src/Makefile.am |
1119 |
+@@ -217,7 +217,6 @@ CXXLINK = \ |
1120 |
+ $(LIBTOOL) --tag CXX \ |
1121 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1122 |
+ --mode=link $(CXX) \ |
1123 |
+- $(VTV_CXXLINKFLAGS) \ |
1124 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1125 |
+ |
1126 |
+ # Symbol versioning for shared libraries. |
1127 |
+--- a/libstdc++-v3/src/Makefile.in |
1128 |
++++ b/libstdc++-v3/src/Makefile.in |
1129 |
+@@ -511,7 +511,6 @@ CXXLINK = \ |
1130 |
+ $(LIBTOOL) --tag CXX \ |
1131 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1132 |
+ --mode=link $(CXX) \ |
1133 |
+- $(VTV_CXXLINKFLAGS) \ |
1134 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1135 |
+ |
1136 |
+ @ENABLE_SYMVERS_TRUE@CLEANFILES = libstdc++-symbols.ver $(version_dep) |
1137 |
+--- a/libstdc++-v3/src/c++11/Makefile.am |
1138 |
++++ b/libstdc++-v3/src/c++11/Makefile.am |
1139 |
+@@ -204,5 +204,4 @@ CXXLINK = \ |
1140 |
+ $(LIBTOOL) --tag CXX --tag disable-shared \ |
1141 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1142 |
+ --mode=link $(CXX) \ |
1143 |
+- $(VTV_CXXLINKFLAGS) \ |
1144 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1145 |
+--- a/libstdc++-v3/src/c++11/Makefile.in |
1146 |
++++ b/libstdc++-v3/src/c++11/Makefile.in |
1147 |
+@@ -496,7 +496,6 @@ CXXLINK = \ |
1148 |
+ $(LIBTOOL) --tag CXX --tag disable-shared \ |
1149 |
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ |
1150 |
+ --mode=link $(CXX) \ |
1151 |
+- $(VTV_CXXLINKFLAGS) \ |
1152 |
+ $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@ |
1153 |
+ |
1154 |
+ all: all-am |
1155 |
+--- a/libstdc++-v3/src/c++98/Makefile.am |
1156 |
++++ b/libstdc++-v3/src/c++98/Makefile.am |
1157 |
+@@ -273,5 +273,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++98/Makefile.in |
1164 |
++++ b/libstdc++-v3/src/c++98/Makefile.in |
1165 |
+@@ -500,7 +500,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 |
|
1174 |
diff --git a/9.5.0/gentoo/25_all_disable-riscv32-ABIs.patch b/9.5.0/gentoo/25_all_disable-riscv32-ABIs.patch |
1175 |
new file mode 100644 |
1176 |
index 0000000..ad0128a |
1177 |
--- /dev/null |
1178 |
+++ b/9.5.0/gentoo/25_all_disable-riscv32-ABIs.patch |
1179 |
@@ -0,0 +1,53 @@ |
1180 |
+Autogenerated patch disabling the 32bit RISCV support |
1181 |
+See https://gcc.gnu.org/PR90419 |
1182 |
+ |
1183 |
+diff -ruN gcc-9.1.0.orig/gcc/config/riscv/t-linux-multilib gcc-9.1.0/gcc/config/riscv/t-linux-multilib |
1184 |
+--- gcc-9.1.0.orig/gcc/config/riscv/t-linux-multilib 2017-02-06 22:38:37.000000000 +0100 |
1185 |
++++ gcc-9.1.0/gcc/config/riscv/t-linux-multilib 2019-05-18 23:04:54.849400774 +0200 |
1186 |
+@@ -1,40 +1,18 @@ |
1187 |
+ # This file was generated by multilib-generator with the command: |
1188 |
+-# ./multilib-generator rv32imac-ilp32-rv32ima,rv32imaf,rv32imafd,rv32imafc,rv32imafdc- rv32imafdc-ilp32d-rv32imafd- rv64imac-lp64-rv64ima,rv64imaf,rv64imafd,rv64imafc,rv64imafdc- rv64imafdc-lp64d-rv64imafd- |
1189 |
+-MULTILIB_OPTIONS = march=rv32imac/march=rv32ima/march=rv32imaf/march=rv32imafd/march=rv32imafc/march=rv32imafdc/march=rv32g/march=rv32gc/march=rv64imac/march=rv64ima/march=rv64imaf/march=rv64imafd/march=rv64imafc/march=rv64imafdc/march=rv64g/march=rv64gc mabi=ilp32/mabi=ilp32d/mabi=lp64/mabi=lp64d |
1190 |
+-MULTILIB_DIRNAMES = rv32imac \ |
1191 |
+-rv32ima \ |
1192 |
+-rv32imaf \ |
1193 |
+-rv32imafd \ |
1194 |
+-rv32imafc \ |
1195 |
+-rv32imafdc \ |
1196 |
+-rv32g \ |
1197 |
+-rv32gc \ |
1198 |
+-rv64imac \ |
1199 |
++# ./multilib-generator rv64imac-lp64-rv64ima,rv64imaf,rv64imafd,rv64imafc,rv64imafdc- rv64imafdc-lp64d-rv64imafd- |
1200 |
++MULTILIB_OPTIONS = march=rv64imac/march=rv64ima/march=rv64imaf/march=rv64imafd/march=rv64imafc/march=rv64imafdc/march=rv64g/march=rv64gc mabi=lp64/mabi=lp64d |
1201 |
++MULTILIB_DIRNAMES = rv64imac \ |
1202 |
+ rv64ima \ |
1203 |
+ rv64imaf \ |
1204 |
+ rv64imafd \ |
1205 |
+ rv64imafc \ |
1206 |
+ rv64imafdc \ |
1207 |
+ rv64g \ |
1208 |
+-rv64gc ilp32 \ |
1209 |
+-ilp32d \ |
1210 |
+-lp64 \ |
1211 |
++rv64gc lp64 \ |
1212 |
+ lp64d |
1213 |
+-MULTILIB_REQUIRED = march=rv32imac/mabi=ilp32 \ |
1214 |
+-march=rv32imafdc/mabi=ilp32d \ |
1215 |
+-march=rv64imac/mabi=lp64 \ |
1216 |
++MULTILIB_REQUIRED = march=rv64imac/mabi=lp64 \ |
1217 |
+ march=rv64imafdc/mabi=lp64d |
1218 |
+-MULTILIB_REUSE = march.rv32imac/mabi.ilp32=march.rv32ima/mabi.ilp32 \ |
1219 |
+-march.rv32imac/mabi.ilp32=march.rv32imaf/mabi.ilp32 \ |
1220 |
+-march.rv32imac/mabi.ilp32=march.rv32imafd/mabi.ilp32 \ |
1221 |
+-march.rv32imac/mabi.ilp32=march.rv32imafc/mabi.ilp32 \ |
1222 |
+-march.rv32imac/mabi.ilp32=march.rv32imafdc/mabi.ilp32 \ |
1223 |
+-march.rv32imac/mabi.ilp32=march.rv32g/mabi.ilp32 \ |
1224 |
+-march.rv32imac/mabi.ilp32=march.rv32gc/mabi.ilp32 \ |
1225 |
+-march.rv32imafdc/mabi.ilp32d=march.rv32imafd/mabi.ilp32d \ |
1226 |
+-march.rv32imafdc/mabi.ilp32d=march.rv32gc/mabi.ilp32d \ |
1227 |
+-march.rv32imafdc/mabi.ilp32d=march.rv32g/mabi.ilp32d \ |
1228 |
+-march.rv64imac/mabi.lp64=march.rv64ima/mabi.lp64 \ |
1229 |
++MULTILIB_REUSE = march.rv64imac/mabi.lp64=march.rv64ima/mabi.lp64 \ |
1230 |
+ march.rv64imac/mabi.lp64=march.rv64imaf/mabi.lp64 \ |
1231 |
+ march.rv64imac/mabi.lp64=march.rv64imafd/mabi.lp64 \ |
1232 |
+ march.rv64imac/mabi.lp64=march.rv64imafc/mabi.lp64 \ |
1233 |
|
1234 |
diff --git a/9.5.0/gentoo/26_all_default_ssp-buffer-size.patch b/9.5.0/gentoo/26_all_default_ssp-buffer-size.patch |
1235 |
new file mode 100644 |
1236 |
index 0000000..dddd06b |
1237 |
--- /dev/null |
1238 |
+++ b/9.5.0/gentoo/26_all_default_ssp-buffer-size.patch |
1239 |
@@ -0,0 +1,14 @@ |
1240 |
+Change the minimal SSP buffer size. |
1241 |
+ |
1242 |
+https://bugs.gentoo.org/484714 |
1243 |
+--- a/gcc/params.def 2016-03-30 09:47:40.000000000 +0200 |
1244 |
++++ b/gcc/params.def 2016-09-19 12:56:58.443179039 +0200 |
1245 |
+@@ -673,7 +673,7 @@ DEFPARAM (PARAM_INTEGER_SHARE_LIMIT, |
1246 |
+ DEFPARAM (PARAM_SSP_BUFFER_SIZE, |
1247 |
+ "ssp-buffer-size", |
1248 |
+ "The lower bound for a buffer to be considered for stack smashing protection.", |
1249 |
+- 8, 1, 0) |
1250 |
++ 4, 1, 0) |
1251 |
+ |
1252 |
+ DEFPARAM (PARAM_MIN_SIZE_FOR_STACK_SHARING, |
1253 |
+ "min-size-for-stack-sharing", |
1254 |
|
1255 |
diff --git a/9.5.0/gentoo/27_all_hppa-faster-synth_mult.patch b/9.5.0/gentoo/27_all_hppa-faster-synth_mult.patch |
1256 |
new file mode 100644 |
1257 |
index 0000000..e93aa40 |
1258 |
--- /dev/null |
1259 |
+++ b/9.5.0/gentoo/27_all_hppa-faster-synth_mult.patch |
1260 |
@@ -0,0 +1,44 @@ |
1261 |
+From 73a841928cc1b86f43108d2383a6242e7e61a785 Mon Sep 17 00:00:00 2001 |
1262 |
+From: Sergei Trofimovich <slyfox@g.o> |
1263 |
+Date: Tue, 31 Mar 2020 23:58:05 +0100 |
1264 |
+Subject: [PATCH] gcc/expmed.h: increase cache size from 10^3 to 10^6 |
1265 |
+ |
1266 |
+Without this patch is takes dev-libs/xxhash 1-2 hours |
1267 |
+to compile. With this patch - TODO measurements. |
1268 |
+ |
1269 |
+It workarounds deficiency of synth_mult() which evics |
1270 |
+cache entries as it calculates optimal multiplication |
1271 |
+algorithm. xxhash is especially hevyweight as it's a |
1272 |
+64-bit multiplication of large prime constants. |
1273 |
+ |
1274 |
+Bug: https://gcc.gnu.org/PR87256 |
1275 |
+Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
1276 |
+--- |
1277 |
+ gcc/expmed.h | 13 ++++++++----- |
1278 |
+ 1 file changed, 8 insertions(+), 5 deletions(-) |
1279 |
+ |
1280 |
+--- a/gcc/expmed.h |
1281 |
++++ b/gcc/expmed.h |
1282 |
+@@ -127,11 +127,14 @@ struct alg_hash_entry { |
1283 |
+ }; |
1284 |
+ |
1285 |
+ /* The number of cache/hash entries. */ |
1286 |
+-#if HOST_BITS_PER_WIDE_INT == 64 |
1287 |
+-#define NUM_ALG_HASH_ENTRIES 1031 |
1288 |
+-#else |
1289 |
+-#define NUM_ALG_HASH_ENTRIES 307 |
1290 |
+-#endif |
1291 |
++/* |
1292 |
++ * Workaround hppa2.0 synth_mult deficiency |
1293 |
++ * and allocate ~1 million slots: |
1294 |
++ * https://gcc.gnu.org/PR87256 |
1295 |
++ * That should increase RAM usage up to ~24MB |
1296 |
++ * per process. |
1297 |
++ */ |
1298 |
++#define NUM_ALG_HASH_ENTRIES 1000003 |
1299 |
+ |
1300 |
+ #define NUM_MODE_INT \ |
1301 |
+ (MAX_MODE_INT - MIN_MODE_INT + 1) |
1302 |
+-- |
1303 |
+2.26.0 |
1304 |
+ |
1305 |
|
1306 |
diff --git a/9.5.0/gentoo/28_all_libcpp-ar.patch b/9.5.0/gentoo/28_all_libcpp-ar.patch |
1307 |
new file mode 100644 |
1308 |
index 0000000..55f2944 |
1309 |
--- /dev/null |
1310 |
+++ b/9.5.0/gentoo/28_all_libcpp-ar.patch |
1311 |
@@ -0,0 +1,143 @@ |
1312 |
+https://bugs.gentoo.org/718004 |
1313 |
+https://gcc.gnu.org/PR94657 |
1314 |
+ |
1315 |
+Make sue we use ${CHOST}-ar and not 'ar'. |
1316 |
+ |
1317 |
+--- a/libcpp/configure.ac |
1318 |
++++ b/libcpp/configure.ac |
1319 |
+@@ -12,6 +12,7 @@ AC_PROG_INSTALL |
1320 |
+ AC_PROG_CC |
1321 |
+ AC_PROG_CXX |
1322 |
+ AC_PROG_RANLIB |
1323 |
++AC_CHECK_TOOL(AR, ar) |
1324 |
+ |
1325 |
+ AC_USE_SYSTEM_EXTENSIONS |
1326 |
+ AC_SYS_LARGEFILE |
1327 |
+--- a/libcpp/Makefile.in |
1328 |
++++ b/libcpp/Makefile.in |
1329 |
+@@ -25,7 +25,7 @@ srcdir = @srcdir@ |
1330 |
+ top_builddir = . |
1331 |
+ VPATH = @srcdir@ |
1332 |
+ INSTALL = @INSTALL@ |
1333 |
+-AR = ar |
1334 |
++AR = @AR@ |
1335 |
+ ARFLAGS = cru |
1336 |
+ ACLOCAL = @ACLOCAL@ |
1337 |
+ AUTOCONF = @AUTOCONF@ |
1338 |
+--- a/libcpp/configure |
1339 |
++++ b/libcpp/configure |
1340 |
+@@ -657,6 +657,7 @@ ACLOCAL |
1341 |
+ EGREP |
1342 |
+ GREP |
1343 |
+ CPP |
1344 |
++AR |
1345 |
+ RANLIB |
1346 |
+ ac_ct_CXX |
1347 |
+ CXXFLAGS |
1348 |
+@@ -1038,6 +1039,7 @@ do |
1349 |
+ | -silent | --silent | --silen | --sile | --sil) |
1350 |
+ silent=yes ;; |
1351 |
+ |
1352 |
++ |
1353 |
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1354 |
+ ac_prev=sbindir ;; |
1355 |
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1356 |
+@@ -4006,6 +4008,98 @@ else |
1357 |
+ RANLIB="$ac_cv_prog_RANLIB" |
1358 |
+ fi |
1359 |
+ |
1360 |
++if test -n "$ac_tool_prefix"; then |
1361 |
++ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
1362 |
++set dummy ${ac_tool_prefix}ar; ac_word=$2 |
1363 |
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1364 |
++$as_echo_n "checking for $ac_word... " >&6; } |
1365 |
++if ${ac_cv_prog_AR+:} false; then : |
1366 |
++ $as_echo_n "(cached) " >&6 |
1367 |
++else |
1368 |
++ if test -n "$AR"; then |
1369 |
++ ac_cv_prog_AR="$AR" # Let the user override the test. |
1370 |
++else |
1371 |
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1372 |
++for as_dir in $PATH |
1373 |
++do |
1374 |
++ IFS=$as_save_IFS |
1375 |
++ test -z "$as_dir" && as_dir=. |
1376 |
++ for ac_exec_ext in '' $ac_executable_extensions; do |
1377 |
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1378 |
++ ac_cv_prog_AR="${ac_tool_prefix}ar" |
1379 |
++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1380 |
++ break 2 |
1381 |
++ fi |
1382 |
++done |
1383 |
++ done |
1384 |
++IFS=$as_save_IFS |
1385 |
++ |
1386 |
++fi |
1387 |
++fi |
1388 |
++AR=$ac_cv_prog_AR |
1389 |
++if test -n "$AR"; then |
1390 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
1391 |
++$as_echo "$AR" >&6; } |
1392 |
++else |
1393 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1394 |
++$as_echo "no" >&6; } |
1395 |
++fi |
1396 |
++ |
1397 |
++ |
1398 |
++fi |
1399 |
++if test -z "$ac_cv_prog_AR"; then |
1400 |
++ ac_ct_AR=$AR |
1401 |
++ # Extract the first word of "ar", so it can be a program name with args. |
1402 |
++set dummy ar; ac_word=$2 |
1403 |
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1404 |
++$as_echo_n "checking for $ac_word... " >&6; } |
1405 |
++if ${ac_cv_prog_ac_ct_AR+:} false; then : |
1406 |
++ $as_echo_n "(cached) " >&6 |
1407 |
++else |
1408 |
++ if test -n "$ac_ct_AR"; then |
1409 |
++ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
1410 |
++else |
1411 |
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1412 |
++for as_dir in $PATH |
1413 |
++do |
1414 |
++ IFS=$as_save_IFS |
1415 |
++ test -z "$as_dir" && as_dir=. |
1416 |
++ for ac_exec_ext in '' $ac_executable_extensions; do |
1417 |
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1418 |
++ ac_cv_prog_ac_ct_AR="ar" |
1419 |
++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1420 |
++ break 2 |
1421 |
++ fi |
1422 |
++done |
1423 |
++ done |
1424 |
++IFS=$as_save_IFS |
1425 |
++ |
1426 |
++fi |
1427 |
++fi |
1428 |
++ac_ct_AR=$ac_cv_prog_ac_ct_AR |
1429 |
++if test -n "$ac_ct_AR"; then |
1430 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
1431 |
++$as_echo "$ac_ct_AR" >&6; } |
1432 |
++else |
1433 |
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1434 |
++$as_echo "no" >&6; } |
1435 |
++fi |
1436 |
++ |
1437 |
++ if test "x$ac_ct_AR" = x; then |
1438 |
++ AR="" |
1439 |
++ else |
1440 |
++ case $cross_compiling:$ac_tool_warned in |
1441 |
++yes:) |
1442 |
++{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
1443 |
++$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
1444 |
++ac_tool_warned=yes ;; |
1445 |
++esac |
1446 |
++ AR=$ac_ct_AR |
1447 |
++ fi |
1448 |
++else |
1449 |
++ AR="$ac_cv_prog_AR" |
1450 |
++fi |
1451 |
++ |
1452 |
+ |
1453 |
+ |
1454 |
+ ac_ext=c |
1455 |
|
1456 |
diff --git a/9.5.0/gentoo/29_all_plugin-objdump.patch b/9.5.0/gentoo/29_all_plugin-objdump.patch |
1457 |
new file mode 100644 |
1458 |
index 0000000..a9c33fd |
1459 |
--- /dev/null |
1460 |
+++ b/9.5.0/gentoo/29_all_plugin-objdump.patch |
1461 |
@@ -0,0 +1,34 @@ |
1462 |
+https://gcc.gnu.org/PR95648 |
1463 |
+--- a/config/gcc-plugin.m4 |
1464 |
++++ b/config/gcc-plugin.m4 |
1465 |
+@@ -45,7 +45,7 @@ AC_DEFUN([GCC_ENABLE_PLUGINS], |
1466 |
+ ;; |
1467 |
+ *) |
1468 |
+ if test x$build = x$host; then |
1469 |
+- export_sym_check="objdump${exeext} -T" |
1470 |
++ export_sym_check="$ac_cv_prog_OBJDUMP -T" |
1471 |
+ elif test x$host = x$target; then |
1472 |
+ export_sym_check="$gcc_cv_objdump -T" |
1473 |
+ else |
1474 |
+--- a/gcc/configure |
1475 |
++++ b/gcc/configure |
1476 |
+@@ -30386,7 +30386,7 @@ fi |
1477 |
+ ;; |
1478 |
+ *) |
1479 |
+ if test x$build = x$host; then |
1480 |
+- export_sym_check="objdump${exeext} -T" |
1481 |
++ export_sym_check="$ac_cv_prog_OBJDUMP -T" |
1482 |
+ elif test x$host = x$target; then |
1483 |
+ export_sym_check="$gcc_cv_objdump -T" |
1484 |
+ else |
1485 |
+--- a/libcc1/configure |
1486 |
++++ b/libcc1/configure |
1487 |
+@@ -14819,7 +14819,7 @@ fi |
1488 |
+ ;; |
1489 |
+ *) |
1490 |
+ if test x$build = x$host; then |
1491 |
+- export_sym_check="objdump${exeext} -T" |
1492 |
++ export_sym_check="$ac_cv_prog_OBJDUMP -T" |
1493 |
+ elif test x$host = x$target; then |
1494 |
+ export_sym_check="$gcc_cv_objdump -T" |
1495 |
+ else |
1496 |
|
1497 |
diff --git a/9.5.0/gentoo/30_all_glibc_236.patch b/9.5.0/gentoo/30_all_glibc_236.patch |
1498 |
new file mode 100644 |
1499 |
index 0000000..4a8c697 |
1500 |
--- /dev/null |
1501 |
+++ b/9.5.0/gentoo/30_all_glibc_236.patch |
1502 |
@@ -0,0 +1,39 @@ |
1503 |
+https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=6bd956e31b2fb6fe1eee4eb1bf309247dcd19b23 |
1504 |
+ |
1505 |
+Fix build w/ glibc 2.36. |
1506 |
+ |
1507 |
+From 6bd956e31b2fb6fe1eee4eb1bf309247dcd19b23 Mon Sep 17 00:00:00 2001 |
1508 |
+From: Martin Liska <mliska@××××.cz> |
1509 |
+Date: Mon, 11 Jul 2022 22:03:14 +0200 |
1510 |
+Subject: [PATCH] libsanitizer: cherry-pick 9cf13067cb5088626ba7 from upstream |
1511 |
+ |
1512 |
+9cf13067cb5088626ba7ee1ec4c42ec59c7995a0 [sanitizer] Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr conflict with glibc 2.36 |
1513 |
+ |
1514 |
+(cherry picked from commit 2701442d0cf6292f6624443c15813d6d1a3562fe) |
1515 |
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc |
1516 |
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc |
1517 |
+@@ -72,7 +72,9 @@ |
1518 |
+ #include <sys/vt.h> |
1519 |
+ #include <linux/cdrom.h> |
1520 |
+ #include <linux/fd.h> |
1521 |
++#if SANITIZER_ANDROID |
1522 |
+ #include <linux/fs.h> |
1523 |
++#endif |
1524 |
+ #include <linux/hdreg.h> |
1525 |
+ #include <linux/input.h> |
1526 |
+ #include <linux/ioctl.h> |
1527 |
+@@ -822,10 +824,10 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr); |
1528 |
+ unsigned IOCTL_EVIOCGPROP = IOCTL_NOT_PRESENT; |
1529 |
+ unsigned IOCTL_EVIOCSKEYCODE_V2 = IOCTL_NOT_PRESENT; |
1530 |
+ #endif |
1531 |
+- unsigned IOCTL_FS_IOC_GETFLAGS = FS_IOC_GETFLAGS; |
1532 |
+- unsigned IOCTL_FS_IOC_GETVERSION = FS_IOC_GETVERSION; |
1533 |
+- unsigned IOCTL_FS_IOC_SETFLAGS = FS_IOC_SETFLAGS; |
1534 |
+- unsigned IOCTL_FS_IOC_SETVERSION = FS_IOC_SETVERSION; |
1535 |
++ unsigned IOCTL_FS_IOC_GETFLAGS = _IOR('f', 1, long); |
1536 |
++ unsigned IOCTL_FS_IOC_GETVERSION = _IOR('v', 1, long); |
1537 |
++ unsigned IOCTL_FS_IOC_SETFLAGS = _IOW('f', 2, long); |
1538 |
++ unsigned IOCTL_FS_IOC_SETVERSION = _IOW('v', 2, long); |
1539 |
+ unsigned IOCTL_GIO_CMAP = GIO_CMAP; |
1540 |
+ unsigned IOCTL_GIO_FONT = GIO_FONT; |
1541 |
+ unsigned IOCTL_GIO_UNIMAP = GIO_UNIMAP; |
1542 |
|
1543 |
diff --git a/9.4.0/gentoo/README.history b/9.5.0/gentoo/README.history |
1544 |
similarity index 96% |
1545 |
copy from 9.4.0/gentoo/README.history |
1546 |
copy to 9.5.0/gentoo/README.history |
1547 |
index 2adb561..a5308d6 100644 |
1548 |
--- a/9.4.0/gentoo/README.history |
1549 |
+++ b/9.5.0/gentoo/README.history |
1550 |
@@ -1,4 +1,4 @@ |
1551 |
-1 01 June 2021 |
1552 |
+1 15 Aug 2022 |
1553 |
+ 01_all_default-fortify-source.patch |
1554 |
+ 02_all_default-warn-format-security.patch |
1555 |
+ 03_all_default-warn-trampolines.patch |
1556 |
@@ -28,3 +28,4 @@ |
1557 |
+ 27_all_hppa-faster-synth_mult.patch |
1558 |
+ 28_all_libcpp-ar.patch |
1559 |
+ 29_all_plugin-objdump.patch |
1560 |
+ + 30_all_glibc_236.patch |