summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-10-21 17:58:46 +0100
committerSam James <sam@gentoo.org>2023-10-21 17:59:18 +0100
commit8dc7a7e2b4735a778b02fd89cb056f22381458e5 (patch)
tree416f8380c6a9b00b345e6ceefbd01a783bcc8132 /eclass/flag-o-matic.eclass
parentapp-text/convmv: keyword 2.05-r1 for ~loong (diff)
downloadgentoo-8dc7a7e2b4735a778b02fd89cb056f22381458e5.tar.gz
gentoo-8dc7a7e2b4735a778b02fd89cb056f22381458e5.tar.bz2
gentoo-8dc7a7e2b4735a778b02fd89cb056f22381458e5.zip
flag-o-matic.eclass: allow hardened compare/control flow flags
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index c0b042d5348d..0c56ac5b6bf4 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -56,6 +56,10 @@ _setup-allowed-flags() {
'-fcf-protection=*'
-fbounds-check -fbounds-checking
-fno-PIE -fno-pie -nopie -no-pie
+ -fharden-compares -fharden-conditional-branches
+ -fharden-control-flow-redundancy -fhardcfr-skip-leaf
+ -fhardcfr-check-exceptions -fhardcfr-check-returning-calls
+ '-fhardcfr-check-noreturn-calls=*'
# Spectre mitigations, bug #646076
'-mindirect-branch=*'
-mindirect-branch-register