[PATCH v5 3/4] RISC-V: Add elf_link_hash_entry to relax_func args.
Project / Subsystem
binutils / risc-v
Date
2026-10-05
Proposer
Kito Cheng <kito.cheng@sifive.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Introduces an unused parameter in some relaxation functions for now, slightly increasing function signature complexity.
All attributes
- project
- binutils
- subsystem
- risc-v
- patch_id
- —
- discussion_id
- 20261005102157.2614702-4-kito.cheng@sifive.com
- source_type
- public_inbox
- title
- [PATCH v5 3/4] RISC-V: Add elf_link_hash_entry to relax_func args.
- headline
- RISC-V: Add elf_link_hash_entry to relax_func args.
- tldr
- Pass elf_link_hash_entry to relaxation functions for consistent TLS handling.
- proposer
- Kito Cheng <kito.cheng@sifive.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Introduces an unused parameter in some relaxation functions for now, slightly increasing function signature complexity.
- series_id
- binutils:risc-v: add elf_link_hash_entry to relax_func args
- series_role
- reply
- series_parts
- []
- tags
-
- • risc-v
- • linker
- • tls
- • relaxation
- bugzilla_url
- —
- date
- 2026-10-05T00:00:00.000Z
[PATCH v5 3/4] RISC-V: Add elf_link_hash_entry to relax_func args.
This patch modifies RISC-V relaxation functions in binutils to accept an elf_link_hash_entry argument. This change is part of a larger effort to unify TLS handling and ensure that all necessary symbol information is available during the relaxation process. By passing the hash entry, the relaxation functions can correctly process TLS-related relocations, improving the robustness of TLS support.