SUNDAY, NOVEMBER 22, 2026
risc-v — Proposed
RISC-V: Support the RVA20S64 and RVA22S64 profiles
Adds support for RVA20S64 and RVA22S64 RISC-V profiles to binutils.
This patch introduces support for the RVA20S64 and RVA22S64 RISC-V profiles, which include specific supervisor ISA versions and extensions like Zifencei. The changes affect BFD and GAS, adding new tests for the updated attributes.
In Details
This patch updates binutils' RISC-V ELF backend (bfd/elfxx-riscv.c) and assembler (gas) to recognize and correctly process the RVA20S64 and RVA22S64 profiles. These profiles represent specific configurations of the RISC-V ISA, including mandatory extensions and supervisor ISA versions, which are encoded in the ELF E_FLAGS field. The changes ensure that assemblers and linkers can correctly handle code targeting these profiles.
For Context
- RISC-V
- An open-standard instruction set architecture (ISA) based on reduced instruction set computer principles.
- RVA20S64
- A specific profile of the RISC-V ISA, indicating a 64-bit architecture with certain standard extensions and supervisor ISA version requirements.
- RVA22S64
- Another RISC-V profile, similar to RVA20S64 but with potentially different or newer extension requirements and supervisor ISA versions.
- Zifencei
- A RISC-V extension that provides instructions for managing instruction fetches, crucial for certain architectural profiles.
- ELF
- Executable and Linkable Format, a common standard file format for executables, object code, shared libraries, and core dumps on Unix-like systems.
- BFD
- Binary File Descriptor library, a low-level library used by GNU Binutils for reading and writing various executable file formats.
- GAS
- The GNU Assembler, part of the GNU Binutils package, responsible for converting assembly language code into machine code.