summaryrefslogtreecommitdiff
path: root/eclass/flag-o-matic.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-05 17:54:48 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-05 17:54:48 +0100
commit8679463887b182c233b55d8112534d7d7dcde08b (patch)
tree3c45a448a6022fda1b09ac5ef94b5c02ddcc9b30 /eclass/flag-o-matic.eclass
parente8c80f80fd116cc679f261d8bc6ee6c9bfc3f0a0 (diff)
gentoo auto-resync : 05:10:2023 - 17:54:48
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index b4c27bf89d92..c0b042d5348d 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -61,6 +61,7 @@ _setup-allowed-flags() {
-mindirect-branch-register
'-mfunction-return=*'
-mretpoline
+ '-mbranch-protection=*'
# Misc
-fno-unit-at-a-time -fno-strict-overflow
@@ -95,6 +96,7 @@ _setup-allowed-flags() {
'-fno-stack-protector*' '-fabi-version=*'
-fno-strict-aliasing -fno-bounds-check -fno-bounds-checking -fstrict-overflow
-fno-omit-frame-pointer '-fno-builtin*'
+ -mno-omit-leaf-frame-pointer
)
ALLOWED_FLAGS+=(
'-mregparm=*' -mno-app-regs -mapp-regs -mno-mmx -mno-sse
@@ -132,6 +134,12 @@ _setup-allowed-flags() {
# binaries: bug #677852
-mstackrealign
)
+ ALLOWED_FLAGS+=(
+ # Clang-only
+ '--unwindlib=*'
+ '--rtlib=*'
+ '--stdlib=*'
+ )
}
# @FUNCTION: _filter-hardened