From 788dc6a895e3ddceb1075bf28414683e1d5ce3dc Mon Sep 17 00:00:00 2001 From: "a@b.com" Date: Thu, 27 Apr 2023 15:50:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E5=85=B3=E9=97=ADadvance?= =?UTF-8?q?=E7=89=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: a@b.com --- arch/arm64/Kconfig | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7c9ea34cc88b..2a855ca71b05 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1403,7 +1403,8 @@ config ARM64_PAN instruction if the cpu does not implement the feature. config AS_HAS_LSE_ATOMICS - def_bool $(as-instr,.arch_extension lse) + bool + default n config ARM64_LSE_ATOMICS bool @@ -1550,18 +1551,20 @@ config ARM64_PTR_AUTH DYNAMIC_FTRACE_WITH_REGS is enabled. config CC_HAS_BRANCH_PROT_PAC_RET - # GCC 9 or later, clang 8 or later - def_bool $(cc-option,-mbranch-protection=pac-ret+leaf) + bool + default n config CC_HAS_SIGN_RETURN_ADDRESS - # GCC 7, 8 - def_bool $(cc-option,-msign-return-address=all) + bool + default n config AS_HAS_PAC - def_bool $(cc-option,-Wa$(comma)-march=armv8.3-a) + bool + default n config AS_HAS_CFI_NEGATE_RA_STATE - def_bool $(as-instr,.cfi_startproc\n.cfi_negate_ra_state\n.cfi_endproc\n) + bool + default n endmenu @@ -1647,8 +1650,8 @@ config ARM64_BTI_KERNEL modular code must have BTI enabled. config CC_HAS_BRANCH_PROT_PAC_RET_BTI - # GCC 9 or later, clang 8 or later - def_bool $(cc-option,-mbranch-protection=pac-ret+leaf+bti) + bool + default n config ARM64_E0PD bool "Enable support for E0PD" @@ -1676,7 +1679,8 @@ config ARM64_AS_HAS_MTE # as a late addition to the final architecture spec (LDGM/STGM) # is only supported in the newer 2.32.x and 2.33 binutils # versions, hence the extra "stgm" instruction check below. - def_bool $(as-instr,.arch armv8.5-a+memtag\nstgm xzr$(comma)[x0]) + bool + default n config ARM64_MTE bool "Memory Tagging Extension support"