libbpf: Permit 64bit relocation value
authorYonghong Song <yhs@fb.com>
Tue, 7 Jun 2022 06:26:05 +0000 (23:26 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 7 Jun 2022 17:20:42 +0000 (10:20 -0700)
commit776281652ddcd98bb292335ea3634da341c849b4
tree89da9e183429634e21c4c2af64acc683d6c9172d
parent6089fb325cf737eeb2c4d236c94697112ca860da
libbpf: Permit 64bit relocation value

Currently, the libbpf limits the relocation value to be 32bit
since all current relocations have such a limit. But with
BTF_KIND_ENUM64 support, the enum value could be 64bit.
So let us permit 64bit relocation value in libbpf.

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