summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-01-18 16:41:43 +0000
committerSam James <sam@gentoo.org>2022-01-22 22:18:53 +0000
commit55065b06c6d9ea69732624565caca2ac10320543 (patch)
treea1668c636f0df48fd32420890e2222f6af3b03d5 /eclass/flag-o-matic.eclass
parentflag-o-matic.eclass: restructure comments a bit (diff)
downloadgentoo-55065b06c6d9ea69732624565caca2ac10320543.tar.gz
gentoo-55065b06c6d9ea69732624565caca2ac10320543.tar.bz2
gentoo-55065b06c6d9ea69732624565caca2ac10320543.zip
flag-o-matic.eclass: allow Spectre mitigation flags
Closes: https://bugs.gentoo.org/646076 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 37577209281a..d6590a2e52df 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -55,6 +55,11 @@ _setup-allowed-flags() {
'-fstack-check*' -fno-stack-check
-fbounds-check -fbounds-checking
-fno-PIE -fno-pie -nopie -no-pie
+ # Spectre mitigations, bug #646076
+ '-mindirect-branch=*'
+ -mindirect-branch-register
+ '-mfunction-return=*'
+ -mretpoline
# Misc
-fno-unit-at-a-time -fno-strict-overflow