diff options
author | Jiri Olsa <jolsa@kernel.org> | 2020-07-11 23:53:21 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-07-13 19:42:02 +0200 |
commit | fbbb68de80a45ad66b66600bee275485c5073aa7 (patch) | |
tree | e18521a9caf782322baba389d26d67617043d41f /tools/bpf/resolve_btfids/Build | |
parent | bpf: Fix fds_example SIGSEGV error (diff) | |
download | linux-fbbb68de80a45ad66b66600bee275485c5073aa7.tar.xz linux-fbbb68de80a45ad66b66600bee275485c5073aa7.zip |
bpf: Add resolve_btfids tool to resolve BTF IDs in ELF object
The resolve_btfids tool scans elf object for .BTF_ids section
and resolves its symbols with BTF ID values.
It will be used to during linking time to resolve arrays of BTF
ID values used in verifier, so these IDs do not need to be
resolved in runtime.
The expected layout of .BTF_ids section is described in main.c
header. Related kernel changes are coming in following changes.
Build issue reported by 0-DAY CI Kernel Test Service.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200711215329.41165-2-jolsa@kernel.org
Diffstat (limited to 'tools/bpf/resolve_btfids/Build')
-rw-r--r-- | tools/bpf/resolve_btfids/Build | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/bpf/resolve_btfids/Build b/tools/bpf/resolve_btfids/Build new file mode 100644 index 000000000000..ae82da03f9bf --- /dev/null +++ b/tools/bpf/resolve_btfids/Build @@ -0,0 +1,10 @@ +resolve_btfids-y += main.o +resolve_btfids-y += rbtree.o +resolve_btfids-y += zalloc.o +resolve_btfids-y += string.o +resolve_btfids-y += ctype.o +resolve_btfids-y += str_error_r.o + +$(OUTPUT)%.o: ../../lib/%.c FORCE + $(call rule_mkdir) + $(call if_changed_dep,cc_o_c) |