From: Björn Töpel Date: Wed, 4 Oct 2023 12:27:20 +0000 (+0200) Subject: selftests/bpf: Enable lld usage for RISC-V X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=72fae6319962fca2ecd8bb4f4e8dbdda7fe9af6f;p=linux.git selftests/bpf: Enable lld usage for RISC-V RISC-V has proper lld support. Use that, similar to what x86 does, for urandom_read et al. Signed-off-by: Björn Töpel Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20231004122721.54525-3-bjorn@kernel.org --- diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index dca2d4dadb2c1..a28cf927bc59a 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -188,7 +188,7 @@ $(OUTPUT)/%:%.c $(Q)$(LINK.c) $^ $(LDLIBS) -o $@ # LLVM's ld.lld doesn't support all the architectures, so use it only on x86 -ifeq ($(SRCARCH),x86) +ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 riscv)) LLD := lld else LLD := ld