binutils Newspaper
OCTOBER 6, 2026
risc-v — Committed

RISC-V: Add Zama16b extension support

Patch committed: RISC-V Zama16b extension support added to binutils.

This confirms that a patch adding support for the RISC-V Zama16b extension to binutils has been committed. The change was made to BFD and gas, updating supported extensions and NEWS entries. This addresses an issue where binutils did not recognize the Zama16b extension, causing assembler errors.

In the Thread 3 participants
  1. Kito Cheng <kito.cheng@gmail.com> other

    Confirms that the patch adding RISC-V Zama16b extension support has been committed.

    “committed :)”
  2. Nelson Chu <nelson.chu1990@gmail.com> reviewer

    Approved the patch for binutils to support the Zama16b extension, noting that GCC already supported it.

    “Okay, if Gcc already supported it then we should at least recognize it in Binutils. Please commit, thanks.”
  3. Wang Yaduo <wangyaduo@linux.alibaba.com> proposer

    Submitted a patch to add support for the RISC-V Zama16b extension to binutils, noting that GCC supported it and binutils was causing errors.

    “I noticed that using -march with zama16b on current trunk triggers an assembler error(https://godbolt.org/z/ed1EdfaKr). GCC has supported the extension but it seems that the binutils misses it.”

Technical Tradeoffs

  • Adds support for a new RISC-V extension, improving compatibility with GCC, at the cost of increasing the assembler's complexity.

In Details

This commit adds support for the RISC-V Zama16b extension to the GNU Assembler (gas) and BFD library within binutils. Zama16b is a standard RISC-V extension. The changes update the internal lists of supported RISC-V extensions and documentation, resolving an issue where binutils would error on this extension.

For Context
Zama16b
A RISC-V extension related to atomic operations, specifically for 16-bit values.
BFD
Binary File Descriptor library, used by GNU Binutils and GDB to provide a common interface to various object file formats.
gas
The GNU Assembler, responsible for translating assembly language code into machine code.
RISC-V
An open-source instruction set architecture (ISA) based on RISC principles.
Filed Under: binutilsrisc-vassemblerextension