binutils Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
binutils/risc-v

RISC-V disassembler gains 'arch=' option for ISA specification.

Users can now specify the RISC-V architecture using an 'arch=' option with the disassembler.

A new arch= option has been added to the RISC-V disassembler, allowing users to explicitly specify the Instruction Set Architecture (ISA). This is particularly useful for core files or stripped binaries where the ISA information might not be present in the object file itself. The option overrides the default ISA derived from the object’s attributes, providing greater flexibility in disassembling RISC-V code.

In Details

The RISC-V disassembler in opcodes/riscv-dis.c now supports an arch= command-line option. This option allows overriding the ISA determined from the object file's architecture attribute or the default rv64gc. It's especially useful for core files or stripped objects where the ISA is not embedded. The option sets the default ISA for the object, taking precedence over attributes but respecting mapping symbols like $xrv.

For Context
RISC-V
An open-standard instruction set architecture (ISA) based on Reduced Instruction Set Computing principles.
Disassembler
A tool that translates machine code (binary instructions) back into human-readable assembly language.
ISA
Instruction Set Architecture. Defines the set of instructions that a processor can execute.
Core file
A file containing the memory image of a process that terminated abnormally, used for debugging.
Mapping symbol
In the context of RISC-V disassembly, these symbols (e.g., $xrv) can indicate specific ISA extensions or configurations that override general settings.
Filed Under: binutilsrisc-vdisassemblerfeature