libbpf: Add enum64 relocation support
authorYonghong Song <yhs@fb.com>
Tue, 7 Jun 2022 06:26:47 +0000 (23:26 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 7 Jun 2022 17:20:43 +0000 (10:20 -0700)
commit23b2a3a8f63a9dc14ad0c7a63098e0b3575b1173
tree2691859e6ba32633eb0db214065a8180e73a6333
parent6ec7d79be202db14bd0ceeb9ed32908bcaae27fa
libbpf: Add enum64 relocation support

The enum64 relocation support is added. The bpf local type
could be either enum or enum64 and the remote type could be
either enum or enum64 too. The all combinations of local enum/enum64
and remote enum/enum64 are supported.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20220607062647.3721719-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/btf.h
tools/lib/bpf/libbpf.c
tools/lib/bpf/relo_core.c