OSDN Git Service

selftests/bpf: Don't force lld on non-x86 architectures
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 17 Jun 2022 04:55:12 +0000 (21:55 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 17 Jun 2022 08:16:01 +0000 (10:16 +0200)
commit08c79c9cd67fffd0d5538ddbd3a97b0a865b5eb5
tree500949378f1e3a80fba37e469a852207d2efe940
parent4429bdc40826a5515fa9d86eb00157e60bfbe658
selftests/bpf: Don't force lld on non-x86 architectures

LLVM's lld linker doesn't have a universal architecture support (e.g.,
it definitely doesn't work on s390x), so be safe and force lld for
urandom_read and liburandom_read.so only on x86 architectures.

This should fix s390x CI runs.

Fixes: 3e6fe5ce4d48 ("libbpf: Fix internal USDT address translation logic for shared libraries")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220617045512.1339795-1-andrii@kernel.org
tools/testing/selftests/bpf/Makefile