1 |
Needed for shadow stack bits on ARM64. |
2 |
|
3 |
Closes: https://bugs.gentoo.org/800533 |
4 |
Thanks-to: Jannik Glückert <jannik.glueckert@×××××.com> |
5 |
Signed-off-by: Sam James <sam@g.o> |
6 |
--- |
7 |
eclass/flag-o-matic.eclass | 3 +++ |
8 |
1 file changed, 3 insertions(+) |
9 |
|
10 |
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass |
11 |
index a2e37b89b6f08..7ac4f4a7791d1 100644 |
12 |
--- a/eclass/flag-o-matic.eclass |
13 |
+++ b/eclass/flag-o-matic.eclass |
14 |
@@ -109,6 +109,9 @@ _setup-allowed-flags() { |
15 |
-mfix-rm7000 -mno-fix-rm7000 -mfix-r10000 -mno-fix-r10000 |
16 |
'-mr10k-cache-barrier=*' -mthumb -marm |
17 |
|
18 |
+ # needed for arm64 (and in particular SCS) |
19 |
+ -ffixed-x18 |
20 |
+ |
21 |
# gcc 4.5 |
22 |
-mno-fma4 -mno-movbe -mno-xop -mno-lwp |
23 |
# gcc 4.6 |
24 |
-- |
25 |
2.34.1 |