From: Anton Ivanov <anton.ivanov@cambridgegreys.com>
To: Brendan Higgins <brendanhiggins@google.com>,
jdike@addtoit.com, richard@nod.at, akpm@linux-foundation.org,
changbin.du@intel.com, yamada.masahiro@socionext.com,
rdunlap@infradead.org, keescook@chromium.org,
andriy.shevchenko@linux.intel.com
Cc: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org,
davidgow@google.com, heidifahim@google.com
Subject: Re: [RFC v1 2/2] arch: um: turn BTF_TYPEINFO support off
Date: Tue, 28 Jan 2020 08:12:28 +0000 [thread overview]
Message-ID: <b49a0bf2-eaf7-b2b3-a7f2-db0f280d42ff@cambridgegreys.com> (raw)
In-Reply-To: <20200127193549.187419-3-brendanhiggins@google.com>
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>
--
Anton R. Ivanov
Cambridgegreys Limited. Registered in England. Company Number 10273661
https://www.cambridgegreys.com/
prev parent reply other threads:[~2020-01-28 8:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-27 19:35 [RFC v1 0/2] " Brendan Higgins
2020-01-27 19:35 ` [RFC v1 1/2] kbuild: add arch specific dependency for BTF support Brendan Higgins
2020-01-28 3:27 ` Masahiro Yamada
2020-01-28 7:25 ` Brendan Higgins
2020-01-27 19:35 ` [RFC v1 2/2] arch: um: turn BTF_TYPEINFO support off Brendan Higgins
2020-01-28 8:12 ` Anton Ivanov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b49a0bf2-eaf7-b2b3-a7f2-db0f280d42ff@cambridgegreys.com \
--to=anton.ivanov@cambridgegreys.com \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=brendanhiggins@google.com \
--cc=changbin.du@intel.com \
--cc=davidgow@google.com \
--cc=heidifahim@google.com \
--cc=jdike@addtoit.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-um@lists.infradead.org \
--cc=rdunlap@infradead.org \
--cc=richard@nod.at \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®