Patch State
Viewing Patch 8875/1
Not logged in Login...
Please note: this is not a patch review system;
please submit all patches to the linux-arm-kernel mailing
list for community review prior to submission here.
This patch system only deals with core ARM patches, not board support.

Go to patch:
Search summaries:
Add new patch Download this patch Help
Updated - Please read
(November 02, 2019)
ID Version From Date Status
8875/1 next/master Nick Desaulniers 8 Jul 2019 20:38:15 UTC Applied
Summary:  Kconfig: default to AEABI w/ Clang
Notes:  - - - Note 1 submitted by Nick Desaulniers on 8 Jul 2019 20:38:15 (UTC) - - -
Clang produces references to __aeabi_uidivmod and __aeabi_idivmod for
arm-linux-gnueabi and arm-linux-gnueabihf targets incorrectly when AEABI
is not selected (such as when OABI_COMPAT is selected).

While this means that OABI userspaces wont be able to upgraded to
kernels built with Clang, it means that boards that don't enable AEABI
like s3c2410_defconfig will stop failing to link in KernelCI when built
with Clang.

Link: https://github.com/ClangBuiltLinux/linux/issues/482
Link: https://groups.google.com/forum/#!msg/clang-built-linux/yydsAAux5hk/GxjqJSW-AQAJ
Suggested-by: Arnd Bergmann <(address hidden)>

Signed-off-by: Nick Desaulniers <(address hidden)>
Reviewed-by: Arnd Bergmann <(address hidden)>
Reviewed-by: Linus Walleij <(address hidden)>
- - - Note 2 submitted by Russell King on 23 Aug 2019 11:37:32 (UTC) - - -
Moved to applied

Applied to git-curr (misc branch).
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 8869742a85df..3539be870055 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1545,8 +1545,9 @@ config ARM_PATCH_IDIV
 	  code to do integer division.
 
 config AEABI
-	bool "Use the ARM EABI to compile the kernel" if !CPU_V7 && !CPU_V7M && !CPU_V6 && !CPU_V6K
-	default CPU_V7 || CPU_V7M || CPU_V6 || CPU_V6K
+	bool "Use the ARM EABI to compile the kernel" if !CPU_V7 && \
+		!CPU_V7M && !CPU_V6 && !CPU_V6K && !CC_IS_CLANG
+	default CPU_V7 || CPU_V7M || CPU_V6 || CPU_V6K || CC_IS_CLANG
 	help
 	  This option allows for the kernel to be compiled using the latest
 	  ARM ABI (aka EABI).  This is only useful if you are using a user