]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-libbpf-relo-fix-and-tests'
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 8 Feb 2018 23:26:18 +0000 (00:26 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 8 Feb 2018 23:26:28 +0000 (00:26 +0100)
commit91a17d70e7dce4268ffc749b3adc4b2685077845
tree0e3c09034cb8bc79fea586681d4de51689a23325
parent38d6b4afa2b4f91f5b808641788fb92fda81e884
parent98886a6ca7fb1d8278c4aec6ded995fd238e73ba
Merge branch 'bpf-libbpf-relo-fix-and-tests'

Jesper Dangaard Brouer says:

====================
While playing with using libbpf for the Suricata project, we had
issues LLVM >= 4.0.1 generating ELF files that could not be loaded
with libbpf (tools/lib/bpf/).

During the troubleshooting phase, I wrote a test program and improved
the debugging output in libbpf.  I turned this into a selftests
program, and it also serves as a code example for libbpf in itself.

I discovered that there are at least three ELF load issues with
libbpf.  I left them as TODO comments in (tools/testing/selftests/bpf)
test_libbpf.sh. I've only fixed the load issue with eh_frames, and
other types of relo-section that does not have exec flags.  We can
work on the other issues later.
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>