diff options
author | Sam James <sam@gentoo.org> | 2022-01-18 16:41:43 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-01-22 22:18:53 +0000 |
commit | 55065b06c6d9ea69732624565caca2ac10320543 (patch) | |
tree | a1668c636f0df48fd32420890e2222f6af3b03d5 /eclass/flag-o-matic.eclass | |
parent | flag-o-matic.eclass: restructure comments a bit (diff) | |
download | gentoo-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.eclass | 5 |
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 |