From e2bb45edcc61989a6c748a480c52079e70eded52 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Sun, 21 Jun 2020 21:48:35 +0300 Subject: [PATCH] kbuild: clear LDFLAGS in the top Makefile The kernel needs to be compiled as a LP64 binary for ARM64, even when using a compiler that defaults to code-generation for the ILP32 ABI. Consequently, we need to explicitly pass '-mabi=lp64' (supported on gcc-4.9 and newer). Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney Signed-off-by: Catalin Marinas Change-Id: Ife00e01e3e3a6d85841b88c2f1a042617bd61500 --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 5b032118442f..928ff1f152ae 100644 --- a/Makefile +++ b/Makefile @@ -418,6 +418,7 @@ KBUILD_AFLAGS_MODULE := -DMODULE KBUILD_CFLAGS_MODULE := -DMODULE KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds GCC_PLUGINS_CFLAGS := +LDFLAGS := CLANG_FLAGS := # Read KERNELRELEASE from include/config/kernel.release (if it exists) -- 2.20.1