Message ID | 20201008001025.292064-4-andrii@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 2b7d88c2b582c659a6567e851d96873d0209a501 |
Delegated to: | BPF |
Headers | show |
Series | libbpf: auto-resize relocatable LOAD/STORE instructions | expand |
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 032cf0049ddb..105cb8ad1d75 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -5842,7 +5842,7 @@ bpf_object__relocate_core(struct bpf_object *obj, const char *targ_btf_path) return 0; if (targ_btf_path) - targ_btf = btf__parse_elf(targ_btf_path, NULL); + targ_btf = btf__parse(targ_btf_path, NULL); else targ_btf = obj->btf_vmlinux; if (IS_ERR_OR_NULL(targ_btf)) {