diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-02-10 12:08:21 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-02-10 12:08:21 +0000 |
commit | 1fe872f729f1361ee45fb0792ca4194cf9c1caeb (patch) | |
tree | 777e05da7672e9de9653373f5d34f50212b1c798 | |
parent | 7.4.0: cut 1.2 patchset (diff) | |
download | gcc-patches-1fe872f729f1361ee45fb0792ca4194cf9c1caeb.tar.gz gcc-patches-1fe872f729f1361ee45fb0792ca4194cf9c1caeb.tar.bz2 gcc-patches-1fe872f729f1361ee45fb0792ca4194cf9c1caeb.zip |
8.2.0: don't enable -fstack-clach-protection by default
In bug #675050 I noticed that -fstack-clash-protection is enabled
not just for hardened users but for USE=ssp users as well.
That was not an intention of the patch. The change enables
-fstack-clach-protection only for -DEXTRA_OPTIONS (hardened users).
See https://bugs.gentoo.org/675050 for longer-term plans to
enable -fstack-clach-protection for more users.
Bug: https://bugs.gentoo.org/675050
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r-- | 8.2.0/gentoo/55_all_extra-options.patch | 2 | ||||
-rw-r--r-- | 8.2.0/gentoo/README.history | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/8.2.0/gentoo/55_all_extra-options.patch b/8.2.0/gentoo/55_all_extra-options.patch index 3e8275f..9187af8 100644 --- a/8.2.0/gentoo/55_all_extra-options.patch +++ b/8.2.0/gentoo/55_all_extra-options.patch @@ -19,7 +19,7 @@ On Hardened we add some options like -fstack-clash-protection and -z now +/* Default value for flag_clash_protector when flag_clash_protector is + initialized to -1. */ -+#ifdef ENABLE_ESP ++#ifdef EXTRA_OPTIONS +#define DEFAULT_FLAG_SCP 1 +#endif +#ifndef DEFAULT_FLAG_SCP diff --git a/8.2.0/gentoo/README.history b/8.2.0/gentoo/README.history index a20d870..bf28171 100644 --- a/8.2.0/gentoo/README.history +++ b/8.2.0/gentoo/README.history @@ -1,5 +1,6 @@ 1.8 TODO + 116_all_ipa-pgo-PR88561-fix.patch + U 55_all_extra-options.patch 1.7 26 Dec 2018 + 114_all_kr-decl-PR88214.patch |