mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 04:16:39 +00:00
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 <bjorn@rivosinc.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20231004122721.54525-3-bjorn@kernel.org
This commit is contained in:
parent
97a79e502e
commit
72fae63199
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue