MIPS: Probe toolchain support of -msym32
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Fri, 2 Feb 2024 18:21:40 +0000 (18:21 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 23 Feb 2024 09:13:47 +0000 (10:13 +0100)
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>
arch/mips/Makefile

index f49807e1f19bc56ac2fd536aef4f4041d3bcad7a..0888074f4dfef0206948d99621c7fca1b92691c1 100644 (file)
@@ -299,7 +299,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