Description of problem: Please add riscv32 to cross-binutils. This is useful for a couple of targets: (1) PicoRV32: I have confirmed that a self-compiled cross-gcc can build working binaries for this target. (2) Embedded firmware: Most planned RV64 machines will include extra RV32 cores for various power management and I/O tasks. The firmware for these is open source, but we don't have a way to compile it. My suggested patch is here, but basically all I did was add extra lines matching the riscv64 ones. https://bugzilla.redhat.com/show_bug.cgi?id=1492341#c5
I presume you can't use the riscv64 tools for riscv32?
Also, are you okay waiting for binutils-2.31 to come along if that's only a few days? I could upgrade cross-binutils to that and do this at the same time then.
(In reply to David Howells from comment #1) > I presume you can't use the riscv64 tools for riscv32? This is a very good point. I'm going to test it and get back.
Yes we can use the riscv64 compiler, so I'm closing this bug. For the record you have to add these flags: -march=rv32i -mabi=ilp32