]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reapply r362235 (by kp):
authordim <dim@FreeBSD.org>
Thu, 6 Aug 2020 19:24:17 +0000 (19:24 +0000)
committerdim <dim@FreeBSD.org>
Thu, 6 Aug 2020 19:24:17 +0000 (19:24 +0000)
commit34f88bca27a4cda83b5a5839b891f3846d5370e8
tree7a7599e8a390d1761c16c633ac0a81aced1630b0
parent4956fb9d938d3c6b1462b5bb61d60da7d4ed47ec
Reapply r362235 (by kp):

llvm: Default to -mno-relax on RISC-V

Compiling on a RISC-V system fails with 'relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax'.

Our default linker (ld.lld) doesn't support relaxation, so default to
no-relax so we don't generate object files the linker can't handle.

Reviewed by: mhorne
Sponsored by: Axiado
Differential Revision: https://reviews.freebsd.org/D25210
contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/RISCV.cpp