Message ID | 20200127193549.187419-3-brendanhiggins@google.com |
---|---|
State | Superseded |
Headers | show |
Series | arch: um: turn BTF_TYPEINFO support off | expand |
On 27/01/2020 19:35, Brendan Higgins wrote: > Currently CONFIG_DEBUG_INFO_BTF=y doesn't work on UML: > > 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 > > So turn off ARCH_HAS_BTF_TYPEINFO support off for the UM architecture. > > Signed-off-by: Brendan Higgins <brendanhiggins@google.com> > --- > arch/um/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/um/Kconfig b/arch/um/Kconfig > index 0917f8443c285..53e13d8b210e0 100644 > --- a/arch/um/Kconfig > +++ b/arch/um/Kconfig > @@ -6,6 +6,7 @@ config UML > bool > default y > select ARCH_HAS_KCOV > + select ARCH_NO_BTF_TYPEINFO > select ARCH_NO_PREEMPT > select HAVE_ARCH_AUDITSYSCALL > select HAVE_ARCH_SECCOMP_FILTER > Acked-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
diff --git a/arch/um/Kconfig b/arch/um/Kconfig index 0917f8443c285..53e13d8b210e0 100644 --- a/arch/um/Kconfig +++ b/arch/um/Kconfig @@ -6,6 +6,7 @@ config UML bool default y select ARCH_HAS_KCOV + select ARCH_NO_BTF_TYPEINFO select ARCH_NO_PREEMPT select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_SECCOMP_FILTER
Currently CONFIG_DEBUG_INFO_BTF=y doesn't work on UML: 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 So turn off ARCH_HAS_BTF_TYPEINFO support off for the UM architecture. Signed-off-by: Brendan Higgins <brendanhiggins@google.com> --- arch/um/Kconfig | 1 + 1 file changed, 1 insertion(+)