]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0437a1444d2642af4993bdede9ece006b56fcc86
tree2691859e6ba32633eb0db214065a8180e73a6333
parent34d485fd51cd314f85914c70af33f9b2f117a5eb
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