[PATCH] RISC-V: Allow 32-bit BFD to handle 64-bit objects
Jeff Law
law@redhat.com
Mon May 1 22:05:00 GMT 2017
On 05/01/2017 02:33 PM, Palmer Dabbelt wrote:
> We've been telling people that the riscv32-* and riscv64-* toolchains
> are exactly the same, but it turns out we were lying: the riscv32-* BFD
> doesn't handle 64-bit objects. This fixes that difference, so the ports
> are actually the same.
>
> bfd/ChangeLog
>
> 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com>
>
> * config.bfd (riscv32-*): Enable unconditionally.
> (riscv64-*): Likewise.
This is obviously a decision for the binutils maintainers, but I can
confirm that with the patch installed, GCC is able to build through
target-libgcc for riscv32, which it couldn't previously do because the
riscv32 BFD bits would blow up assembling the 64bit multilib code
produced by GCC.
jeff
More information about the Binutils
mailing list