Thread (11 messages) 11 messages, 5 authors, 2020-01-15

Re: Re: linux-next: build warning after merge of the bpf-next tree

From: Alexandre Ghiti <hidden>
Date: 2020-01-10 22:28:24
Also in: linux-arm-kernel, linux-next, linuxppc-dev, lkml

Hi guys,

On 10/27/19 8:02 PM, Stephen Rothwell wrote:
Hi all,

On Fri, 18 Oct 2019 10:56:57 +1100 Stephen Rothwell [off-list ref] wrote:
quoted
Hi all,

After merging the bpf-next tree, today's linux-next build (powerpc
ppc64_defconfig) produced this warning:

WARNING: 2 bad relocations
c000000001998a48 R_PPC64_ADDR64    _binary__btf_vmlinux_bin_start
c000000001998a50 R_PPC64_ADDR64    _binary__btf_vmlinux_bin_end

Introduced by commit

   8580ac9404f6 ("bpf: Process in-kernel BTF")
This warning now appears in the net-next tree build.
I bump that thread up because Zong also noticed that 2 new relocations for
those symbols appeared in my riscv relocatable kernel branch following 
that commit.

I also noticed 2 new relocations R_AARCH64_ABS64 appearing in arm64 kernel.

Those 2 weak undefined symbols have existed since commit
341dfcf8d78e ("btf: expose BTF info through sysfs") but this is the fact
to declare those symbols into btf.c that produced those relocations.

I'm not sure what this all means, but this is not something I expected 
for riscv for
a kernel linked with -shared/-fpie. Maybe should we just leave them to 
zero ?

I think that deserves a deeper look if someone understands all this 
better than I do.

Alex
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help