HomeFreeBSD

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

Description

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

Details

Provenance
kpAuthored on Jun 16 2020, 6:39 PM
Parents
rG95ef69c63c42: iSo in doing final checks on OCA firmware with all the latest tweaks the dup…
Branches
Unknown
Tags
Unknown

Event Timeline