Skip to content

Commit 5277d13

Browse files
masahir0yAlexei Starovoitov
authored andcommitted
btf: require pahole 1.21+ for DEBUG_INFO_BTF with default DWARF version
As described in commit 42d9b37 ("lib/Kconfig.debug: Allow BTF + DWARF5 with pahole 1.21+"), the combination of CONFIG_DEBUG_INFO_BTF and CONFIG_DEBUG_INFO_DWARF5 requires pahole 1.21+. GCC 11+ and Clang 14+ default to DWARF 5 when the -g flag is passed. For the same reason, the combination of CONFIG_DEBUG_INFO_BTF and CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT is also likely to require pahole 1.21+ these days. (At least, it is uncertain whether the actual requirement is pahole 1.16+ or 1.21+.) Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Alan Maguire <alan.maguire@oracle.com> Acked-by: Andrii Nakryiko <andrii@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Link: https://lore.kernel.org/r/20240913173759.1316390-3-masahiroy@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent 42450f7 commit 5277d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Kconfig.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ config DEBUG_INFO_BTF
380380
depends on !GCC_PLUGIN_RANDSTRUCT || COMPILE_TEST
381381
depends on BPF_SYSCALL
382382
depends on PAHOLE_VERSION >= 116
383-
depends on !DEBUG_INFO_DWARF5 || PAHOLE_VERSION >= 121
383+
depends on DEBUG_INFO_DWARF4 || PAHOLE_VERSION >= 121
384384
# pahole uses elfutils, which does not have support for Hexagon relocations
385385
depends on !HEXAGON
386386
help

0 commit comments

Comments
 (0)