[RFC PATCH v4 1/5] RISC-V: Add Zcmt table-jump relocation definitions

Project / Subsystem

binutils / risc-v

Date

2026-10-01

Proposer

Jiawei <jiawei@iscas.ac.cn>

Source type

public_inbox

Consensus

Proposed

Sentiment

8/10

Technical tradeoffs

  • • Adds new symbols and sections, potentially increasing binary size slightly.
  • • Introduces new relocation types, requiring careful handling by the linker and assembler.
  • • The complexity of jump table management needs to be balanced against performance gains.

All attributes

project
binutils
subsystem
risc-v
patch_id
—
discussion_id
20261001090404.108916-1-jiawei@iscas.ac.cn
source_type
public_inbox
title
[RFC PATCH v4 1/5] RISC-V: Add Zcmt table-jump relocation definitions
headline
RISC-V: Add Zcmt table-jump relocation definitions
tldr
Adds definitions for RISC-V Zcmt table-jump relocations to binutils.
proposer
Jiawei <jiawei@iscas.ac.cn>
consensus
Proposed
outcome
proposed
sentiment_score
8
technical_tradeoffs
  • • Adds new symbols and sections, potentially increasing binary size slightly.
  • • Introduces new relocation types, requiring careful handling by the linker and assembler.
  • • The complexity of jump table management needs to be balanced against performance gains.
series_id
binutils:risc-v: add zcmt table-jump relocation definitions
series_role
reply
series_parts
[]
tags
  • • binutils
  • • risc-v
  • • compiler
  • • linker
  • • optimization
bugzilla_url
—
date
2026-10-01T00:00:00.000Z

[RFC PATCH v4 1/5] RISC-V: Add Zcmt table-jump relocation definitions

Jiawei proposes adding linker-internal definitions for RISC-V Zcmt table-jump relocations to binutils. This change introduces new relocation numbers, symbol names, and section names to support this feature. The RFC is intended to move forward with the implementation, with one reviewer noting they have pushed subsequent patches to make progress.