HomeFreeBSD

Reapply r362235 (by kp):

Description

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

(cherry picked from commit 82343267e32c24c6c577bc9cdae394d84c623507)

Details

Provenance
dimAuthored on Aug 6 2020, 7:24 PM
Reviewer
mhorne
Differential Revision
D25210: llvm: Default to -mno-relax
Parents
rG7785cdd1f9a8: Reapply r360852 (by cem):
Branches
Unknown
Tags
Unknown