summaryrefslogtreecommitdiffstats
path: root/kernel/configs/debug.config
diff options
context:
space:
mode:
authorQian Cai <quic_qiancai@quicinc.com>2022-03-05 05:29:10 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2022-03-05 20:08:33 +0100
commitd1eff16d727ff257b706d32114d3881f67cc9c75 (patch)
tree1476f0f722f4dd00723940c92ce18ce69b553a2a /kernel/configs/debug.config
parentproc: fix documentation and description of pagemap (diff)
downloadlinux-d1eff16d727ff257b706d32114d3881f67cc9c75.tar.xz
linux-d1eff16d727ff257b706d32114d3881f67cc9c75.zip
configs/debug: set CONFIG_DEBUG_INFO=y properly
CONFIG_DEBUG_INFO can't be set by user directly, so set CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y instead. Otherwise, we end up with no debuginfo in vmlinux which is a big no-no for kernel debugging. Link: https://lkml.kernel.org/r/20220301202920.18488-1-quic_qiancai@quicinc.com Signed-off-by: Qian Cai <quic_qiancai@quicinc.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--kernel/configs/debug.config2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/configs/debug.config b/kernel/configs/debug.config
index e9ffb0cc1eec..07df6d93c4df 100644
--- a/kernel/configs/debug.config
+++ b/kernel/configs/debug.config
@@ -16,7 +16,7 @@ CONFIG_SYMBOLIC_ERRNAME=y
#
# Compile-time checks and compiler options
#
-CONFIG_DEBUG_INFO=y
+CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
CONFIG_DEBUG_SECTION_MISMATCH=y
CONFIG_FRAME_WARN=2048
CONFIG_SECTION_MISMATCH_WARN_ONLY=y