]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
MIPS: Probe toolchain support of -msym32
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 24 Dec 2024 06:09:18 +0000 (14:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:24:58 +0000 (13:24 +0100)
[ Upstream commit 18ca63a2e23c5e170d2d7552b64b1f5ad019cd9b ]

msym32 is not supported by LLVM toolchain.
Workaround by probe toolchain support of msym32 for KBUILD_SYM32
feature.

Link: https://github.com/ClangBuiltLinux/linux/issues/1544
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/Makefile

index acab8018ab440989db8b8280294c84548e267a4c..289fb4b88d0e1c6a052bc2a0f47b7fcf8c1dbddc 100644 (file)
@@ -272,7 +272,7 @@ drivers-$(CONFIG_PCI)               += arch/mips/pci/
 ifdef CONFIG_64BIT
   ifndef KBUILD_SYM32
     ifeq ($(shell expr $(load-y) \< 0xffffffff80000000), 0)
-      KBUILD_SYM32 = y
+      KBUILD_SYM32 = $(call cc-option-yn, -msym32)
     endif
   endif