GNU binutils for RISC-V and Sparc/LEON
This project contains scripts and patches for downloading and building patched GNU binutils for RISC-V and Sparc architectures with added new instructions.
binutils version
This package uses and modifies binutils v2.37.
Building for Sparc
Run script './run_sparc.sh all' to build binutils for Sparc/LEON target. The compiled tools are placed in subdirectory 'install-sparc'.
Building for RISC-V
Run script './run_riscv.sh all' to build binutils for RISC-V target. The compiled tools are placed in subdirectory 'install-riscv'.
Using
Add the output directory with the compiled tools for RISC-V architecture to the PATH.
export PATH=<repository>/install-riscv/bin:${PATH}
or fot Sparc architecture
export PATH=<repository>/install-sparc/bin:${PATH}
New assembler instructions can be used with options '--has-swar','--has-fhalf','--has-fcplx','--has-fpack' for Sparc architecture. For RISC-V architecture new instructions can be used if the input assembler file contains corresponding CPU extension in the archiutecture attribute.
All compiled binutils tools have prefix 'riscv64-daiteq-elf-' for RISC-V architecture and 'sparc-daiteq-elf-' for Sparc architecture.