diff options
author | Yonghong Song <yhs@fb.com> | 2021-02-26 12:49:30 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-02-26 13:23:52 -0800 |
commit | 53eddb5e04ac5c53a4ccef9f1f900562a5a75246 (patch) | |
tree | ee1704c335102fd4f7c1905819f93c313938ce7d /tools/lib/api | |
parent | b8f871fa32ad392759bc70090fa8c60d9f10625c (diff) | |
download | linux-53eddb5e04ac5c53a4ccef9f1f900562a5a75246.tar.bz2 |
libbpf: Support subprog address relocation
A new relocation RELO_SUBPROG_ADDR is added to capture
subprog addresses loaded with ld_imm64 insns. Such ld_imm64
insns are marked with BPF_PSEUDO_FUNC and will be passed to
kernel. For bpf_for_each_map_elem() case, kernel will
check that the to-be-used subprog address must be a static
function and replace it with proper actual jited func address.
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210226204930.3885367-1-yhs@fb.com
Diffstat (limited to 'tools/lib/api')
0 files changed, 0 insertions, 0 deletions