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 <togofire@mailfence.com>
Change-Id: I0250ae96c752f244d0a48e127516513e6d711930
This commit is contained in:
Jake Weinstein 2022-09-13 05:14:08 +09:00 committed by Ksawlii
parent 1210b31ce5
commit e35a1fbdcf
3 changed files with 3 additions and 2 deletions

View file

@ -241,7 +241,7 @@ CONFIG_ADVISE_SYSCALLS=y
CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y
CONFIG_MEMBARRIER=y CONFIG_MEMBARRIER=y
CONFIG_KALLSYMS=y CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y # CONFIG_KALLSYMS_ALL is not set
CONFIG_KALLSYMS_BASE_RELATIVE=y CONFIG_KALLSYMS_BASE_RELATIVE=y
# CONFIG_BPF_LSM is not set # CONFIG_BPF_LSM is not set
CONFIG_BPF_SYSCALL=y CONFIG_BPF_SYSCALL=y

View file

@ -228,7 +228,7 @@ CONFIG_ADVISE_SYSCALLS=y
CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y
CONFIG_MEMBARRIER=y CONFIG_MEMBARRIER=y
CONFIG_KALLSYMS=y CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y # CONFIG_KALLSYMS_ALL is not set
CONFIG_KALLSYMS_BASE_RELATIVE=y CONFIG_KALLSYMS_BASE_RELATIVE=y
# CONFIG_BPF_LSM is not set # CONFIG_BPF_LSM is not set
CONFIG_BPF_SYSCALL=y CONFIG_BPF_SYSCALL=y

View file

@ -1788,6 +1788,7 @@ config KALLSYMS
config KALLSYMS_ALL config KALLSYMS_ALL
bool "Include all symbols in kallsyms" bool "Include all symbols in kallsyms"
depends on DEBUG_KERNEL && KALLSYMS depends on DEBUG_KERNEL && KALLSYMS
default n
help help
Normally kallsyms only contains the symbols of functions for nicer Normally kallsyms only contains the symbols of functions for nicer
OOPS messages and backtraces (i.e., symbols from the text and inittext OOPS messages and backtraces (i.e., symbols from the text and inittext