[PATCH v3] LoongArch: Support R_LARCH_TLS_DTPREL32/64 used in debug section
Project / Subsystem
binutils / loongarch
Date
2026-07-10
Proposer
mengqinggang <mengqinggang@loongson.cn>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Simplifies relocation processing logic for improved maintainability.
- • Ensures compatibility with LoongArch's RELA relocation model.
All attributes
- project
- binutils
- subsystem
- loongarch
- patch_id
- —
- discussion_id
- 20260710033401.522212-1-mengqinggang@loongson.cn
- source_type
- public_inbox
- title
- [PATCH v3] LoongArch: Support R_LARCH_TLS_DTPREL32/64 used in debug section
- headline
- LoongArch: Support R_LARCH_TLS_DTPREL32/64 used in debug section
- tldr
- Simplify LoongArch TLS relocations in debug sections for better compatibility.
- proposer
- mengqinggang <mengqinggang@loongson.cn>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Simplifies relocation processing logic for improved maintainability.
- • Ensures compatibility with LoongArch's RELA relocation model.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • tls
- • relocation
- • loongarch
- • debugging
- • binutils
- bugzilla_url
- —
- date
- 2026-07-10T00:00:00.000Z
[PATCH v3] LoongArch: Support R_LARCH_TLS_DTPREL32/64 used in debug section
This patch simplifies the processing of R_LARCH_TLS_DTPREL32/64 relocations within the debug sections on LoongArch systems. It aims to return the correct offset to the TLS block for symbols and sets partial_inplace to false, acknowledging that LoongArch uses RELA relocations. The changes are an iteration from previous versions, with adjustments to the dtprel.d file to remove addend values and improve clarity.