WSL2-Linux-Kernel/tools/bpf/resolve_btfids
Hengqi Chen 5aad036851 tools/resolve_btfids: Emit warnings and patch zero id for missing symbols
Kernel functions referenced by .BTF_ids may be changed from global to static
and get inlined or get renamed/removed, and thus disappears from BTF.
This causes kernel build failure when resolve_btfids do id patch for symbols
in .BTF_ids in vmlinux. Update resolve_btfids to emit warning messages and
patch zero id for missing symbols instead of aborting kernel build process.

Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210727132532.2473636-2-hengqi.chen@gmail.com
2021-07-29 14:37:23 -07:00
..
.gitignore tools/resolve_btfids: Add /libbpf to .gitignore 2021-02-12 13:08:26 -08:00
Build bpf: Add resolve_btfids tool to resolve BTF IDs in ELF object 2020-07-13 10:42:02 -07:00
Makefile tools/resolve_btfids: Set srctree variable unconditionally 2021-02-08 21:21:39 -08:00
main.c tools/resolve_btfids: Emit warnings and patch zero id for missing symbols 2021-07-29 14:37:23 -07:00