binutils Newspaper
NOVEMBER 30, 2026
risc-v — Proposed

RISC-V: Support the RVA20S64 and RVA22S64 profiles

Adds support for RVA20S64 and RVA22S64 RISC-V profiles to binutils.

This is the first patch in a series that adds support for the RVA20S64 and RVA22S64 RISC-V profiles. It includes the necessary supervisor ISA versions and extensions like Zifencei. The changes update the BFD ELF backend and GAS, and add new readelf tests to verify the complete ISA attributes. This patch is part of a larger effort to integrate these profiles into binutils.

In Details

This patch, the first in a series, updates binutils' RISC-V support by adding definitions for the RVA20S64 and RVA22S64 profiles. These profiles, detailed in RISC-V specifications, require specific supervisor ISA versions (Ss 1.11 and 1.12) and extensions (e.g., Zifencei). The changes are made in bfd/elfxx-riscv.c to the riscv_profiles_table and in gas/ to the NEWS file and test suite. This ensures that gas and bfd can correctly interpret and represent these profiles in ELF objects.

For Context
RISC-V
An open-standard instruction set architecture (ISA).
RVA20S64
A specific RISC-V profile for 64-bit systems, including supervisor ISA features.
RVA22S64
A more recent RISC-V profile for 64-bit systems, potentially with updated supervisor ISA features.
Zifencei
A RISC-V extension for instruction-fetch fence instructions.
BFD
Binary File Descriptor library, used by GNU Binutils for handling object files.
GAS
The GNU Assembler.
ELF
Executable and Linkable Format, a standard file format for executables and libraries.
Filed Under: risc-visaassemblerlinker