diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-10-15 20:28:45 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-10-16 01:06:05 +0200 |
commit | 511bb0085c6fe48353c35cd3d25f4f8720579a6d (patch) | |
tree | 241b6942492dc14948b62cffd68856743323fd6d /tools/lib/bpf/btf.h | |
parent | net: Update address for vrf and l3mdev in MAINTAINERS (diff) | |
download | linux-511bb0085c6fe48353c35cd3d25f4f8720579a6d.tar.xz linux-511bb0085c6fe48353c35cd3d25f4f8720579a6d.zip |
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
Diffstat (limited to 'tools/lib/bpf/btf.h')
-rw-r--r-- | tools/lib/bpf/btf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/bpf/btf.h b/tools/lib/bpf/btf.h index 9cb44b4fbf60..b18994116a44 100644 --- a/tools/lib/bpf/btf.h +++ b/tools/lib/bpf/btf.h @@ -60,8 +60,8 @@ struct btf_ext_header { __u32 line_info_len; /* optional part of .BTF.ext header */ - __u32 offset_reloc_off; - __u32 offset_reloc_len; + __u32 field_reloc_off; + __u32 field_reloc_len; }; LIBBPF_API void btf__free(struct btf *btf); |