diff options
-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 |