summaryrefslogtreecommitdiffstats
path: root/arch/x86/Kconfig.assembler
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-06-12 07:02:55 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2024-06-20 19:48:18 +0200
commit469169803d52a5d8f0dc781090638e851a7d22b1 (patch)
tree3d1c43c96c26e2babf2e7df7de44bc9bc43f0cf8 /arch/x86/Kconfig.assembler
parentLinux 6.10-rc4 (diff)
downloadlinux-469169803d52a5d8f0dc781090638e851a7d22b1.tar.xz
linux-469169803d52a5d8f0dc781090638e851a7d22b1.zip
x86/kconfig: Add as-instr64 macro to properly evaluate AS_WRUSS
Some instructions are only available on the 64-bit architecture. Bi-arch compilers that default to -m32 need the explicit -m64 option to evaluate them properly. Fixes: 18e66b695e78 ("x86/shstk: Add Kconfig option for shadow stack") Closes: https://lore.kernel.org/all/20240612-as-instr-opt-wrussq-v2-1-bd950f7eead7@gmail.com/ Reported-by: Dmitry Safonov <0x7f454c46@gmail.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Tested-by: Dmitry Safonov <0x7f454c46@gmail.com> Link: https://lore.kernel.org/r/20240612050257.3670768-1-masahiroy@kernel.org
Diffstat (limited to 'arch/x86/Kconfig.assembler')
-rw-r--r--arch/x86/Kconfig.assembler2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/Kconfig.assembler b/arch/x86/Kconfig.assembler
index 59aedf32c4ea..6d20a6ce0507 100644
--- a/arch/x86/Kconfig.assembler
+++ b/arch/x86/Kconfig.assembler
@@ -36,6 +36,6 @@ config AS_VPCLMULQDQ
Supported by binutils >= 2.30 and LLVM integrated assembler
config AS_WRUSS
- def_bool $(as-instr,wrussq %rax$(comma)(%rbx))
+ def_bool $(as-instr64,wrussq %rax$(comma)(%rbx))
help
Supported by binutils >= 2.31 and LLVM integrated assembler