libbpf: move BTF loading step after relocation step
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 4 Jan 2024 01:38:44 +0000 (17:38 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 4 Jan 2024 05:22:49 +0000 (21:22 -0800)
commit1004742d7ff03a088e74133af2401556ac80092b
tree5d133fc7e5e29a75f513ad0169f2ec7ff9743561
parentfb03be7c4a27c25696287df4ee06c5aafa31267c
libbpf: move BTF loading step after relocation step

With all the preparations in previous patches done we are ready to
postpone BTF loading and sanitization step until after all the
relocations are performed.

Acked-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240104013847.3875810-7-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c