summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-10-21 18:05:18 +0100
committerSam James <sam@gentoo.org>2023-10-21 18:06:13 +0100
commiteb7bf2ea4b01fd24f0e0549fa1fad87fd5f2d83a (patch)
tree278e66e56aeb0b941d0cdff972a999ac4fd237a5 /eclass/flag-o-matic.eclass
parentflag-o-matic.eclass: allow hardened compare/control flow flags (diff)
downloadgentoo-eb7bf2ea4b01fd24f0e0549fa1fad87fd5f2d83a.tar.gz
gentoo-eb7bf2ea4b01fd24f0e0549fa1fad87fd5f2d83a.tar.bz2
gentoo-eb7bf2ea4b01fd24f0e0549fa1fad87fd5f2d83a.zip
flag-o-matic.eclass: add -mpreferred-stack-boundary=*, -mincoming-stack-boundary=*
Wine may use this and it's in the same league as -mstackrealign in that it affects ABI. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 0c56ac5b6bf4..a899afdb4f18 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -137,6 +137,8 @@ _setup-allowed-flags() {
# Allow explicit stack realignment to run non-conformant
# binaries: bug #677852
-mstackrealign
+ '-mpreferred-stack-boundary=*'
+ '-mincoming-stack-boundary=*'
)
ALLOWED_FLAGS+=(
# Clang-only