libbpf: Tighten BTF type ID rewriting with error checking
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 23 Apr 2021 18:13:40 +0000 (11:13 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 23 Apr 2021 21:05:27 +0000 (14:05 -0700)
commit83a157279f2125ce1c4d6d93750440853746dff0
tree03c89c30dc6a6c409be6f0c73a4c0d6bcf019269
parent386b1d241e1b975a239d33be836bc183a52ab18c
libbpf: Tighten BTF type ID rewriting with error checking

It should never fail, but if it does, it's better to know about this rather
than end up with nonsensical type IDs.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210423181348.1801389-11-andrii@kernel.org
tools/lib/bpf/linker.c