summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-02-13 21:01:27 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2019-02-13 21:03:30 +0000
commit2004d466896f9b81452c7bdac1ee00866b8f0ff1 (patch)
tree9c64be4977abc742aa747e3030f59c58d6954e22 /eclass
parentdev-java/openjdk: die if FEATURES=ccache (diff)
downloadgentoo-2004d466896f9b81452c7bdac1ee00866b8f0ff1.tar.gz
gentoo-2004d466896f9b81452c7bdac1ee00866b8f0ff1.tar.bz2
gentoo-2004d466896f9b81452c7bdac1ee00866b8f0ff1.zip
flag-o-matic.eclass: whitelist -mstackrealign for 'strip-flags'
Allow '-mstackrealign' in ebuilds like glibc to force stack realignment. That will allow running ancient (or foreign) binaries that don't maintain 16-byte stack alignment. See bug #677852 for example. Reported-by: Michael Huss Closes: https://bugs.gentoo.org/677852 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 582339096573..933104190ae3 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -69,6 +69,13 @@ setup-allowed-flags() {
# gcc 4.9
-mno-avx512cd -mno-avx512er -mno-avx512f -mno-avx512pf -mno-sha
)
+
+ # Allow some safe individual flags. Should come along with the bug reference.
+ ALLOWED_FLAGS+=(
+ # Allow explicit stack realignment to run non-conformant
+ # binaries: bug #677852
+ -mstackrealign
+ )
}
# inverted filters for hardened compiler. This is trying to unpick