Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: toolchain@g.o, Sam James <sam@g.o>
Subject: [gentoo-dev] [PATCH 6/8] flag-o-matic.eclass: allow -ffixed-x18 for arm64
Date: Tue, 18 Jan 2022 18:26:21
Message-Id: 20220118182412.1127220-6-sam@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/8] flag-o-matic.eclass: strip-flags: Fix logic to properly support "=" in patterns. by Sam James
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