riscv-software-src / riscv-tools

RISC-V Tools (ISA Simulator and Tests)
1.13k stars 446 forks source link

Bare metal soft-floating point support #298

Open beatsnbytes opened 4 years ago

beatsnbytes commented 4 years ago

Hello,

I am trying to build the riscv-tools and the respective toolchain (on the branch priv-1.7 since my project is based on this privileged ISA spec) with no success. While the building itself is completed successfully (using the flags --with-arch=RV64IMA --disable-float --with-abi=lp64) I am unable to actually compile some binaries against the newly installed toolchain. Specifically I get the error from the linker that " can't link hard-float modules with soft-float modules". I suppose that some parts of the libraries I am trying to link are not generated with the intended by me soft floating point emulation? In the compiling process I am providing the -msoft-float flag. Any help or indications for possible errors would be much appreciated.