From e35a1fbdcffb7e1994dc27043e770261dfdc644a Mon Sep 17 00:00:00 2001 From: Jake Weinstein Date: Tue, 13 Sep 2022 05:14:08 +0900 Subject: [PATCH] Kconfig: Disable KALLSYMS_ALL We do not need to load all symbols into the kernel image. This takes a significant amount of compile time. Signed-off-by: TogoFire Change-Id: I0250ae96c752f244d0a48e127516513e6d711930 --- arch/arm64/configs/a53x-ksu_defconfig | 2 +- arch/arm64/configs/s5e8825-a53xxx_defconfig | 2 +- init/Kconfig | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/configs/a53x-ksu_defconfig b/arch/arm64/configs/a53x-ksu_defconfig index 7a3f4472f..71f7e7015 100644 --- a/arch/arm64/configs/a53x-ksu_defconfig +++ b/arch/arm64/configs/a53x-ksu_defconfig @@ -241,7 +241,7 @@ CONFIG_ADVISE_SYSCALLS=y CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y CONFIG_MEMBARRIER=y CONFIG_KALLSYMS=y -CONFIG_KALLSYMS_ALL=y +# CONFIG_KALLSYMS_ALL is not set CONFIG_KALLSYMS_BASE_RELATIVE=y # CONFIG_BPF_LSM is not set CONFIG_BPF_SYSCALL=y diff --git a/arch/arm64/configs/s5e8825-a53xxx_defconfig b/arch/arm64/configs/s5e8825-a53xxx_defconfig index 44be29d64..dbe91b518 100644 --- a/arch/arm64/configs/s5e8825-a53xxx_defconfig +++ b/arch/arm64/configs/s5e8825-a53xxx_defconfig @@ -228,7 +228,7 @@ CONFIG_ADVISE_SYSCALLS=y CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y CONFIG_MEMBARRIER=y CONFIG_KALLSYMS=y -CONFIG_KALLSYMS_ALL=y +# CONFIG_KALLSYMS_ALL is not set CONFIG_KALLSYMS_BASE_RELATIVE=y # CONFIG_BPF_LSM is not set CONFIG_BPF_SYSCALL=y diff --git a/init/Kconfig b/init/Kconfig index fca7632b1..e2d29c24e 100755 --- a/init/Kconfig +++ b/init/Kconfig @@ -1788,6 +1788,7 @@ config KALLSYMS config KALLSYMS_ALL bool "Include all symbols in kallsyms" depends on DEBUG_KERNEL && KALLSYMS + default n help Normally kallsyms only contains the symbols of functions for nicer OOPS messages and backtraces (i.e., symbols from the text and inittext