]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Update BTF reloc support to latest Clang format
authorAndrii Nakryiko <andriin@fb.com>
Tue, 15 Oct 2019 18:28:45 +0000 (11:28 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 15 Oct 2019 23:06:05 +0000 (16:06 -0700)
commitd71159deb64c30380eb8d7625dbb2bc36eff7121
tree241b6942492dc14948b62cffd68856743323fd6d
parentf70fba6dfdb6ce459c838a18272a7e41e636d7eb
libbpf: Update BTF reloc support to latest Clang format

BTF offset reloc was generalized in recent Clang into field relocation,
capturing extra u32 field, specifying what aspect of captured field
needs to be relocated. This changes .BTF.ext's record size for this
relocation from 12 bytes to 16 bytes. Given these format changes
happened in Clang before official released version, it's ok to not
support outdated 12-byte record size w/o breaking ABI.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191015182849.3922287-2-andriin@fb.com
tools/lib/bpf/btf.c
tools/lib/bpf/btf.h
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_internal.h