]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
lib/Kconfig.debug: Allow BTF + DWARF5 with pahole 1.21+
authorNathan Chancellor <nathan@kernel.org>
Mon, 7 Feb 2022 15:15:15 +0000 (15:15 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 11 Feb 2022 10:59:44 +0000 (11:59 +0100)
commit96858bf6477e1ed9e46364220ff23929a41c9394
tree79f705a3a507a54f48e021fcd29a35c9b928ae09
parentcfa84bb85cfacaad1439d7898970e59a06c60daf
lib/Kconfig.debug: Allow BTF + DWARF5 with pahole 1.21+

Commit 98cd6f521f10 ("Kconfig: allow explicit opt in to DWARF v5")
prevented CONFIG_DEBUG_INFO_DWARF5 from being selected when
CONFIG_DEBUG_INFO_BTF is enabled because pahole had issues with clang's
DWARF5 info. This was resolved by [1], which is in pahole v1.21.

Allow DEBUG_INFO_DWARF5 to be selected with DEBUG_INFO_BTF when using
pahole v1.21 or newer.

[1]: https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?id=7d8e829f636f47aba2e1b6eda57e74d8e31f733c

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220201205624.652313-6-nathan@kernel.org
(cherry picked from bpf-next commit 42d9b379e3e1790eafb87c799c9edfd0b37a37c7)
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
lib/Kconfig.debug