libbpf: Add multi-prog section support for struct_ops

Adjust struct_ops handling code to work with multi-program ELF sections
properly.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200903203542.15944-7-andriin@fb.com
This commit is contained in:
Andrii Nakryiko 2020-09-03 13:35:34 -07:00 • committed by Alexei Starovoitov
commit 7e06aad529