]> git.itanic.dy.fi Git - linux-stable/commit
lib/Kconfig.debug: disable CONFIG_DEBUG_INFO_BTF for Hexagon
authorNathan Chancellor <nathan@kernel.org>
Fri, 5 Jan 2024 19:13:04 +0000 (12:13 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Jan 2024 23:20:45 +0000 (15:20 -0800)
commitaaa2c9a97c22af5bf011f6dd8e0538219b45af88
tree66a8806c9d691d2e914d59d506a980db5b2067c9
parent65cc86800cf27d8e2da3439c834aef96d93fef63
lib/Kconfig.debug: disable CONFIG_DEBUG_INFO_BTF for Hexagon

pahole, which generates BTF, relies on elfutils to process DWARF debug
info.  Because kernel modules are relocatable files, elfutils needs to
resolve relocations when processing the DWARF .debug sections.

Hexagon is not supported in binutils or elfutils, so elfutils is unable to
process relocations in kernel modules, causing pahole to crash during BTF
generation.

Do not allow CONFIG_DEBUG_INFO_BTF to be selected for Hexagon until it is
supported in elfutils, so that there are no more cryptic build failures
during BTF generation.

Link: https://lkml.kernel.org/r/20240105-hexagon-disable-btf-v1-1-ddab073e7f74@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312192107.wMIKiZWw-lkp@intel.com/
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Brian Cain <bcain@quicinc.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/Kconfig.debug