summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-01-18 16:53:05 +0000
committerSam James <sam@gentoo.org>2022-01-22 22:18:55 +0000
commitceeae764d33b6f9e041a0cb821a1096293880e68 (patch)
tree0766d89670cce464537acdf6687c8d1a53e28c93 /eclass/flag-o-matic.eclass
parentflag-o-matic.eclass: allow -ffixed-x18 for arm64 (diff)
downloadgentoo-ceeae764d33b6f9e041a0cb821a1096293880e68.tar.gz
gentoo-ceeae764d33b6f9e041a0cb821a1096293880e68.tar.bz2
gentoo-ceeae764d33b6f9e041a0cb821a1096293880e68.zip
flag-o-matic.eclass: allow -fstack-clash-protection, -fcf-protection=*
-fstack-clash-protection suggested by Arfrever. Reported-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 7ac4f4a7791d..062bd04e2e0b 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -53,6 +53,8 @@ _setup-allowed-flags() {
# Hardening flags
'-fstack-protector*'
'-fstack-check*' -fno-stack-check
+ -fstack-clash-protection
+ '-fcf-protection=*'
-fbounds-check -fbounds-checking
-fno-PIE -fno-pie -nopie -no-pie
# Spectre mitigations, bug #646076