linux-stable/arch/riscv
Fangrui Song 0a46c031d0 riscv: Pass -mno-relax only on lld < 15.0.0
commit 3cebf80e9a upstream.

lld since llvm:6611d58f5bbc ("[ELF] Relax R_RISCV_ALIGN"), which will be
included in the 15.0.0 release, has implemented some RISC-V linker
relaxation.  -mno-relax is no longer needed in
KBUILD_CFLAGS/KBUILD_AFLAGS to suppress R_RISCV_ALIGN which older lld
can not handle:

    ld.lld: error: capability.c:(.fixup+0x0): relocation R_RISCV_ALIGN
    requires unimplemented linker relaxation; recompile with -mno-relax
    but the .o is already compiled with -mno-relax

Signed-off-by: Fangrui Song <maskray@google.com>
Link: https://lore.kernel.org/r/20220710071117.446112-1-maskray@google.com/
Link: https://lore.kernel.org/r/20220918092933.19943-1-palmer@rivosinc.com
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-24 09:56:46 +02:00
..
boot riscv: dts: microchip: use an mpfs specific l2 compatible 2022-09-15 10:47:14 +02:00
configs RISC-V: configs: Configs that had RPMSG_CHAR now get RPMSG_CTRL 2022-04-26 08:19:53 -07:00
errata riscv: don't warn for sifive erratas in modules 2022-07-07 23:09:16 -07:00
include riscv: vdso: fix NULL deference in vdso_join_timens() when vfork 2022-10-24 09:56:45 +02:00
kernel riscv: always honor the CONFIG_CMDLINE_FORCE when parsing dtb 2022-10-24 09:56:46 +02:00
kvm riscv: kvm: move extern sbi_ext declarations to a header 2022-09-08 11:24:02 +02:00
lib riscv: lib: uaccess: fix CSR_STATUS SR_SUM bit 2022-08-17 15:13:49 +02:00
mm riscv: Make VM_WRITE imply VM_READ 2022-10-24 09:56:46 +02:00
net riscv, bpf: Implement more atomic operations for RV64 2022-04-11 16:54:54 +02:00
purgatory RISC-V: Add purgatory 2022-05-19 12:18:59 -07:00
Kbuild riscv: move errata/ and kvm/ builds to arch/riscv/Kbuild 2022-06-01 22:26:32 -07:00
Kconfig riscv: topology: fix default topology reporting 2022-10-24 09:56:45 +02:00
Kconfig.debug
Kconfig.erratas riscv: make t-head erratas depend on MMU 2022-10-05 10:40:41 +02:00
Kconfig.socs RISC-V Patches for the 5.19 Merge Window, Part 1 2022-05-31 14:10:54 -07:00
Makefile riscv: Pass -mno-relax only on lld < 15.0.0 2022-10-24 09:56:46 +02:00