riscv64gc-unknown-none-elf
target generates soft-float ABI
#60012
Labels
O-riscv
Target: RISC-V architecture
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
tl;dr: confusion about float ABI in rust-generated RV64 object files
To do a little testing with Rust on Kendryte K210 (RV64GC) without having to write a full BSP, I'm trying to link the output of rust into an existing bare-metal project,
With the following source:
However, it looks like the output (see
flags
is marked as soft-float ABI):This causes the following error during link:
The expected value for
flags
would be, in this specific case:To be honest I don't know if this is expected or not! For gcc it seems to have to do with the
-mabi
flag—I'm not sure what ABI we'd be expecting Rust to generate here:The text was updated successfully, but these errors were encountered: