diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-08-07 14:39:51 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-08-07 14:43:49 -0700 |
commit | ddc7c3042614e273044f698d2beab25cc3842d45 (patch) | |
tree | 9e80ac1aba335b955c31b13bd8f96bd960957576 /tools/build | |
parent | 4cedc0dad9b5bf55c4180c833be35e27e5d6cdbb (diff) | |
download | linux-stable-ddc7c3042614e273044f698d2beab25cc3842d45.tar.gz linux-stable-ddc7c3042614e273044f698d2beab25cc3842d45.tar.bz2 linux-stable-ddc7c3042614e273044f698d2beab25cc3842d45.zip |
libbpf: implement BPF CO-RE offset relocation algorithm
This patch implements the core logic for BPF CO-RE offsets relocations.
Every instruction that needs to be relocated has corresponding
bpf_offset_reloc as part of BTF.ext. Relocations are performed by trying
to match recorded "local" relocation spec against potentially many
compatible "target" types, creating corresponding spec. Details of the
algorithm are noted in corresponding comments in the code.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/build')
0 files changed, 0 insertions, 0 deletions