FRIDAY, NOVEMBER 20, 2026
risc-v — Committed
RISC-V: Add Sdext extension
Adds the Sdext extension to binutils, which implies Zicsr and is related to RISC-V debug.
This commit introduces support for the RISC-V Sdext extension in binutils. Sdext is part of the RISC-V debug specification and implies the Zicsr extension. The change updates BFD and GAS to recognize this extension, ensuring correct handling of debug-related features.
In Details
This patch integrates the RISC-V Sdext extension into binutils. Sdext, related to the RISC-V debug specification, implies the Zicsr extension. The modifications are made in bfd/elfxx-riscv.c to include Sdext in the list of supported extensions and define its implication, and in gas/testsuite/gas/riscv/imply.d and march-help.l to add corresponding test cases.
For Context
- RISC-V
- An open standard instruction set architecture (ISA) based on Reduced Instruction Set Computer principles.
- Sdext
- A RISC-V standard extension related to debug functionality, implying the Zicsr extension.
- Zicsr
- A RISC-V standard extension for Control and Status Register access.
- BFD
- Binary File Descriptor library, a core component of GNU Binutils used for reading and writing various object file formats.
- GAS
- The GNU Assembler, part of the GNU Binutils suite.