bpf, libbpf: refactor relocation handling
authorJoe Stringer <joe@wand.net.nz>
Tue, 9 Apr 2019 21:20:12 +0000 (23:20 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 10 Apr 2019 00:05:47 +0000 (17:05 -0700)
commitf8c7a4d4dc39991c1bc05847ea4378282708f935
treef643fcbccc25920dbf793f66f946d9f8b10c29b6
parentc83fef6bc5627bd0484a151212449270ab294cd9
bpf, libbpf: refactor relocation handling

Adjust the code for relocations slightly with no functional changes,
so that upcoming patches that will introduce support for relocations
into the .data, .rodata and .bss sections can be added independent
of these changes.

Signed-off-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c