]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Ensure ELF symbols table is found before further ELF processing
authorAndrii Nakryiko <andriin@fb.com>
Thu, 3 Sep 2020 20:35:29 +0000 (13:35 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Sep 2020 00:14:39 +0000 (17:14 -0700)
commitc2b1da9056cb77d3f5003a1ca82baf53d1de1e0e
treee111201c80992e0f2d760d7399aa57fb5937de83
parent9db7864cb01fdbeadd60d3252cceaf7455c6f585
libbpf: Ensure ELF symbols table is found before further ELF processing

libbpf ELF parsing logic might need symbols available before ELF parsing is
completed, so we need to make sure that symbols table section is found in
a separate pass before all the subsequent sections are processed.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200903203542.15944-2-andriin@fb.com
tools/lib/bpf/libbpf.c