Thread (22 messages) flat view 22 messages, 5 authors, 2021-06-08

Re: [PATCH v2 bpf-next 06/11] libbpf: add BPF static linker APIs

From: Andrii Nakryiko <hidden>
Date: 2021-06-08 00:25:24
Also in: bpf

On Mon, Jun 7, 2021 at 4:12 PM Tom Stellard [off-list ref] wrote:

Hi,
quoted
+                               } else {
+                                       pr_warn("relocation against STT_SECTION in non-exec section is not supported!\n");
+                                       return -EINVAL;
+                               }
Kernel build of commit 324c92e5e0ee are failing for me with this error
message:

/builddir/build/BUILD/kernel-5.13-rc4-61-g324c92e5e0ee/linux-5.13.0-0.rc4.20210603git324c92e5e0ee.35.fc35.x86_64/tools/bpf/bpftool/bpftool gen object /builddir/build/BUILD/kernel-5.13-rc4-61-g324c92e5e0ee/linux-5.13.0-0.rc4.20210603git324c92e5e0ee.35.fc35.x86_64/tools/testing/selftests/bpf/bind_perm.linked1.o /builddir/build/BUILD/kernel-5.13-rc4-61-g324c92e5e0ee/linux-5.13.0-0.rc4.20210603git324c92e5e0ee.35.fc35.x86_64/tools/testing/selftests/bpf/bind_perm.o
libbpf: relocation against STT_SECTION in non-exec section is not supported!

What information can I provide to help debug this failure?
Can you please send that bind_perm.o file? Also what's your `clang
--version` output?

I suspect this might be due to Clang commit 6a2ea84600ba ("BPF: Add
more relocation kinds"), but I get a different error on 324c92e5e0ee.
So meanwhile you might try applying 9f0c317f6aa1 ("libbpf: Add support
for new llvm bpf relocations") from bpf-next/master and check if that
helps. But please do share bind_perm.o, just to double-check what's
going on.

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