[PATCH] D93563: BPF: add extern func to data sections if specified
Alexei Starovoitov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 19 09:24:41 PST 2020
ast added a comment.
why the current behavior is not enough?
BTF_KIND_FUNC (foo1) -> BTF_KIND_FUNC_PROTO (foo1)
BTF_KIND_FUNC (foo2) -> BTF_KIND_FUNC_PROTO (foo2)
libbpf can use order to find proper function. foo can be extern as it is right now. Then libbpf will first try to match between multiple elf bpf files. If still not found it will search in vmlinux/mods.
I think using KIND_VAR is incorrect. There is no variable here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93563/new/
https://reviews.llvm.org/D93563
More information about the llvm-commits
mailing list