]> 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, 2 Jan 2025 09:30:53 +0000 (10:30 +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 dd6486097e1dc67066ec40760660e56ca6bd4b0b..6468f1eb39f379c564b50a29338c3934d1d308a7 100644 (file)
@@ -304,7 +304,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