Re: [PATCH] RISC-V: Describe relax passes with a pass table
Project / Subsystem
binutils / risc-v
Date
2026-09-24
Proposer
Kito Cheng <kito.cheng@gmail.com>
Source type
public_inbox
Consensus
Committed
Sentiment
—/10
Technical tradeoffs
- • Increased complexity in the linker script due to the pass table structure.
- • Potential for new bugs during the introduction of the pass table mechanism.
All attributes
- project
- binutils
- subsystem
- risc-v
- patch_id
- —
- discussion_id
- CA+yXCZDignJ_8Et3mKSkkmbQdMiZa+khGSTVqDHt9VLeEcb7Zg@mail.gmail.com
- source_type
- public_inbox
- title
- Re: [PATCH] RISC-V: Describe relax passes with a pass table
- headline
- RISC-V: Describe relax passes with a pass table
- tldr
- A patch refactors the RISC-V relax pass mechanism by introducing a pass table, improving maintainability and paving the way for new relax passes.
- proposer
- Kito Cheng <kito.cheng@gmail.com>
- consensus
- Committed
- outcome
- committed
- sentiment_score
- —
- technical_tradeoffs
-
- • Increased complexity in the linker script due to the pass table structure.
- • Potential for new bugs during the introduction of the pass table mechanism.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • binutils
- • risc-v
- • linker
- • refactoring
- • assembler
- bugzilla_url
- —
- date
- 2026-09-24T00:00:00.000Z
Re: [PATCH] RISC-V: Describe relax passes with a pass table
Kito Cheng announces that a patch has been pushed, refactoring the RISC-V relax pass mechanism in binutils. The change introduces a pass table to describe each relax pass, which includes a reloc selector and optional hooks. This structure is intended to simplify the addition of new relax passes, such as vendor-specific ones or those for the Zcmt extension, by avoiding repetitive code for each new pass.