summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-01-18 16:50:23 +0000
committerSam James <sam@gentoo.org>2022-01-22 22:18:54 +0000
commita5e21edfc41b5663110f0a6dddf38975038c7009 (patch)
tree0bd1194f74211d816b82a3e8e4d453eb3dd887ab /eclass/flag-o-matic.eclass
parentflag-o-matic.eclass: allow -glldb (diff)
downloadgentoo-a5e21edfc41b5663110f0a6dddf38975038c7009.tar.gz
gentoo-a5e21edfc41b5663110f0a6dddf38975038c7009.tar.bz2
gentoo-a5e21edfc41b5663110f0a6dddf38975038c7009.zip
flag-o-matic.eclass: allow -ffixed-x18 for arm64
Needed for shadow stack bits on ARM64. Closes: https://bugs.gentoo.org/800533 Thanks-to: Jannik Glückert <jannik.glueckert@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index a2e37b89b6f0..7ac4f4a7791d 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -109,6 +109,9 @@ _setup-allowed-flags() {
-mfix-rm7000 -mno-fix-rm7000 -mfix-r10000 -mno-fix-r10000
'-mr10k-cache-barrier=*' -mthumb -marm
+ # needed for arm64 (and in particular SCS)
+ -ffixed-x18
+
# gcc 4.5
-mno-fma4 -mno-movbe -mno-xop -mno-lwp
# gcc 4.6