Landing: 4b013df1822f
Project / Subsystem
binutils / risc-v
Date
2026-10-01
Author
Kito Cheng <kito@sourceware.org>
Commit
4b013df1822f977e2d9ceeeabc0eb2f827f66c03
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- 4b013df1822f977e2d9ceeeabc0eb2f827f66c03
- source_type
- public_inbox
- headline
- RISC-V: Add Zcmt table-jump relocation definitions
- tldr
- Binutils now includes linker definitions for RISC-V Zcmt table-jump relocations.
- author
- Kito Cheng <kito@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • linker
- • relocation
- • Zcmt
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-10-01T00:00:00.000Z
This commit introduces the necessary linker-internal definitions for RISC-V Zcmt table-jump (JVT) relocations. It adds a new relocation type R_RISCV_TABLE_JUMP, a base symbol RISCV_TABLE_JUMP_BASE_SYMBOL, and a section name TABLE_JUMP_SEC_NAME to include/elf/riscv.h. Additionally, it defines Zcmt constants related to table jumps and alterations in include/opcode/riscv.h. This lays the groundwork for linker optimizations involving table jumps.