diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-10-27 11:06:16 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-10-27 11:06:16 +0100 |
commit | e2c9eba5f076cfd8e064fdad01b0fa7da030c008 (patch) | |
tree | 2ba6bab9e1975cb9efd47dccd9a0e7c6909718bb /6.5.0/gentoo/04_all_default-ssp-fix.patch | |
parent | 6.4.0: cut 1.8 patchset (diff) | |
download | gcc-patches-e2c9eba5f076cfd8e064fdad01b0fa7da030c008.tar.gz gcc-patches-e2c9eba5f076cfd8e064fdad01b0fa7da030c008.tar.bz2 gcc-patches-e2c9eba5f076cfd8e064fdad01b0fa7da030c008.zip |
6.5.0: cut 1.0 patchset, a copy of 6.4.0-1.8 patchset
The only different from 6.4.0-1.8 patchset is dropped
patches that are already upstream.
22 patches:
+ 01_all_default-fortify-source.patch
+ 02_all_default-warn-format-security.patch
+ 03_all_default-warn-trampolines.patch
+ 04_all_default-ssp-fix.patch
+ 05_all_alpha-mieee-default.patch
+ 06_all_arm_armv4t-default.patch
+ 07_all_ia64_note.GNU-stack.patch
+ 08_all_superh_default-multilib.patch
+ 09_all_libiberty-asprintf.patch
+ 10_all_libiberty-pic.patch
+ 11_all_nopie-all-flags.patch
+ 12_all_extra-options.patch
+ 13_all_pr55930-dependency-tracking.patch
+ 14_all_asan-signal_h.patch
+ 15_all_respect-build-cxxflags.patch
+ 16_all_libgfortran-Werror.patch
+ 17_all_libgomp-Werror.patch
+ 18_all_libitm-Werror.patch
+ 19_all_libatomic-Werror.patch
+ 20_all_libbacktrace-Werror.patch
+ 21_all_libsanitizer-libbacktrace-Werror.patch
+ 22_all_libstdcxx-no-vtv.patch
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to '6.5.0/gentoo/04_all_default-ssp-fix.patch')
-rw-r--r-- | 6.5.0/gentoo/04_all_default-ssp-fix.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/6.5.0/gentoo/04_all_default-ssp-fix.patch b/6.5.0/gentoo/04_all_default-ssp-fix.patch new file mode 100644 index 0000000..cbbd522 --- /dev/null +++ b/6.5.0/gentoo/04_all_default-ssp-fix.patch @@ -0,0 +1,38 @@ +Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding +Change the buffer size. + +--- a/gcc/gcc.c 2017-07-04 09:15:57.740793000 +0200 ++++ b/gcc/gcc.c 2018-03-02 13:58:44.387741114 +0100 +@@ -857,6 +857,12 @@ proper position among the other output f + #define LINK_GCC_C_SEQUENCE_SPEC "%G %L %G" + #endif + ++#ifdef ENABLE_DEFAULT_SSP ++#define NO_SSP_SPEC "%{nostdlib|nodefaultlibs|ffreestanding:-fno-stack-protector} " ++#else ++#define NO_SSP_SPEC "" ++#endif ++ + #ifndef LINK_SSP_SPEC + #ifdef TARGET_LIBC_PROVIDES_SSP + #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ +@@ -1131,7 +1148,7 @@ static const char *cc1_options = + %{-version:--version}\ + %{-help=*:--help=%*}\ + %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\ +- %{fsyntax-only:-o %j} %{-param*}\ ++ %{fsyntax-only:-o %j} %{-param*} " NO_SSP_SPEC "\ + %{coverage:-fprofile-arcs -ftest-coverage}"; + + static const char *asm_options = +--- a/gcc/params.def 2016-03-30 09:47:40.000000000 +0200 ++++ b/gcc/params.def 2016-09-19 12:56:58.443179039 +0200 +@@ -673,7 +673,7 @@ DEFPARAM (PARAM_INTEGER_SHARE_LIMIT, + DEFPARAM (PARAM_SSP_BUFFER_SIZE, + "ssp-buffer-size", + "The lower bound for a buffer to be considered for stack smashing protection.", +- 8, 1, 0) ++ 4, 1, 0) + + DEFPARAM (PARAM_MIN_SIZE_FOR_STACK_SHARING, + "min-size-for-stack-sharing", |