libbpf: Enforce 64-bitness of BTF for BPF object files
authorAndrii Nakryiko <andriin@fb.com>
Thu, 13 Aug 2020 20:49:42 +0000 (13:49 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 13 Aug 2020 23:45:41 +0000 (16:45 -0700)
commit4c01925f583eaa7d9d003dc87a4b75b8140b4ff6
tree86d5cd277a6ebb83aa6dbfb7ab4a950f5cd22a32
parenteed7818adf03e874994b966aa33bc00204dd275a
libbpf: Enforce 64-bitness of BTF for BPF object files

BPF object files are always targeting 64-bit BPF target architecture, so
enforce that at BTF level as well.

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