]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
llvm: Default to -mno-relax on RISC-V
authorKristof Provost <kp@FreeBSD.org>
Tue, 16 Jun 2020 18:39:56 +0000 (18:39 +0000)
committerKristof Provost <kp@FreeBSD.org>
Tue, 16 Jun 2020 18:39:56 +0000 (18:39 +0000)
commit389f88cffd0d89919ecb67937b52b0cac97ca0b8
tree8d9a2bbf90ae457508e4f0e93b2b3ce02c2e05fd
parent95ef69c63c42feb4a1dd0e7973efbbdd00e80dae
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