Needed for shadow stack bits on ARM64.

Closes: https://bugs.gentoo.org/800533
Thanks-to: Jannik Glückert <jannik.glueck...@gmail.com>
Signed-off-by: Sam James <s...@gentoo.org>
---
 eclass/flag-o-matic.eclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index a2e37b89b6f08..7ac4f4a7791d1 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
-- 
2.34.1


Reply via email to