]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7bd2153f30d2069e0b411e6bd4e1af3beb62c4b0
tree89da9e183429634e21c4c2af64acc683d6c9172d
parenta1fcb84bc4c60d7d5c1ea74ed1b531526e4d291d
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