Skip to content

RFC arch: um: turn BTF_TYPEINFO support off

Brendan Higgins linux-um lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kbuild: add arch specific dependency for BTF supportlib/Kconfig.debug+4 -12 replies
2/2arch: um: turn BTF_TYPEINFO support offarch/um/Kconfig+1 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAnton Ivanov
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC v1 0/2] arch: um: turn BTF_TYPEINFO support off

As a part of my quest to get allyesconfig working on UML, I found a new build error, with CONFIG_DEBUG_INFO_BTF=y:

scripts/link-vmlinux.sh: line 106: 17463 Segmentation fault LLVM_OBJCOPY=${OBJCOPY} ${PAHOLE} -J ${1}
objcopy: --change-section-vma .BTF=0x0000000000000000 never used
objcopy: --change-section-lma .BTF=0x0000000000000000 never used
objcopy: error: the input file '.btf.vmlinux.bin' is empty Failed to generate BTF for vmlinux
Try to disable CONFIG_DEBUG_INFO_BTF
make: *** [Makefile:1078: vmlinux] Error 1

The most interesting bit seems to be the:

objcopy: error: the input file '.btf.vmlinux.bin' is empty

Thinking about it, I am not sure if it makes sense for UML to produce BTF type information, so I proposed a fix here that:

1. Adds the ability for architectures to turn BTF support off.
2. Turns BTF support off for UML.

I am also totally fine with just saying that DEBUG_INFO_BTF depends on !UML, but I figured people would prefer this approach more.

Brendan Higgins (2):
kbuild: add arch specific dependency for BTF support
arch: um: turn BTF_TYPEINFO support off

 arch/um/Kconfig   | 1 +
 lib/Kconfig.debug | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.0.341.g760bfbb309-goog