summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-04-08 11:14:23 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2022-04-08 22:24:15 +0200
commite89d57d938c8fa80c457982154ed6110804814fe (patch)
treea5a6b8b62931835354fc3ad34e1348a35895e5e5 /tools/testing
parent587323cf6a6a6da074f0518444ee7da10f517f45 (diff)
libbpf: Don't error out on CO-RE relos for overriden weak subprogs
During BPF static linking, all the ELF relocations and .BTF.ext information (including CO-RE relocations) are preserved for __weak subprograms that were logically overriden by either previous weak subprogram instance or by corresponding "strong" (non-weak) subprogram. This is just how native user-space linkers work, nothing new. But libbpf is over-zealous when processing CO-RE relocation to error out when CO-RE relocation belonging to such eliminated weak subprogram is encountered. Instead of erroring out on this expected situation, log debug-level message and skip the relocation. Fixes: db2b8b06423c ("libbpf: Support CO-RE relocations for multi-prog sections") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220408181425.2287230-2-andrii@kernel.org
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions