libbpf: Split CO-RE logic into relo_core.c.

Move CO-RE logic into separate file.
The internal interface between libbpf and CO-RE is through
bpf_core_apply_relo_insn() function and few structs defined in relo_core.h.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210721000822.40958-5-alexei.starovoitov@gmail.com
This commit is contained in:
Alexei Starovoitov
2021-07-20 17:08:22 -07:00
committed by Andrii Nakryiko
parent 2fe57e40ac
commit d41e821ccf
4 changed files with 1318 additions and 1296 deletions

1295
src/relo_core.c Normal file

File diff suppressed because it is too large Load Diff