aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-04-25 17:45:06 -0700
committerAlexei Starovoitov <ast@kernel.org>2022-04-26 15:41:46 -0700
commitb82bb1ffbb9a20032853ef4e0d5b8f37c6ae7c25 (patch)
tree4f871fd99d03f0b83e22eec3c6a26279a05cb0d6 /tools/lib/bpf
parentlibbpf: Avoid joining .BTF.ext data with BPF programs by section name (diff)
downloadlinux-dev-b82bb1ffbb9a20032853ef4e0d5b8f37c6ae7c25.tar.xz
linux-dev-b82bb1ffbb9a20032853ef4e0d5b8f37c6ae7c25.zip
selftests/bpf: Add CO-RE relos and SEC("?...") to linked_funcs selftests
Enhance linked_funcs selftest with two tricky features that might not obviously work correctly together. We add CO-RE relocations to entry BPF programs and mark those programs as non-autoloadable with SEC("?...") annotation. This makes sure that libbpf itself handles .BTF.ext CO-RE relocation data matching correctly for SEC("?...") programs, as well as ensures that BPF static linker handles this correctly (this was the case before, no changes are necessary, but it wasn't explicitly tested). Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20220426004511.2691730-6-andrii@kernel.org
Diffstat (limited to 'tools/lib/bpf')
0 files changed, 0 insertions, 0 deletions