[PATCH v0 1/4] LoongArch: Fix the size of tls desc relocations
Project / Subsystem
binutils / loongarch
Date
2026-07-07
Proposer
mengqinggang <mengqinggang@loongson.cn>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Correcting relocation sizes is essential for linker and runtime correctness.
- • Ensures compliance with LoongArch ABI specifications for TLS handling.
All attributes
- project
- binutils
- subsystem
- loongarch
- patch_id
- —
- discussion_id
- 20260707174719.1883721-2-mengqinggang@loongson.cn
- source_type
- public_inbox
- title
- [PATCH v0 1/4] LoongArch: Fix the size of tls desc relocations
- headline
- LoongArch: Fix the size of TLS descriptor relocations
- tldr
- Corrects the size of R_LARCH_TLS_DESC64_* relocations from 8 to 4 bytes in binutils.
- proposer
- mengqinggang <mengqinggang@loongson.cn>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Correcting relocation sizes is essential for linker and runtime correctness.
- • Ensures compliance with LoongArch ABI specifications for TLS handling.
- series_id
- binutils:loongarch: fix the size of tls desc relocations
- series_role
- reply
- series_parts
- []
- tags
-
- • loongarch
- • binutils
- • linker
- • relocation
- • tls
- bugzilla_url
- —
- date
- 2026-07-07T00:00:00.000Z
[PATCH v0 1/4] LoongArch: Fix the size of tls desc relocations
This patch corrects the size definition for R_LARCH_TLS_DESC64_* relocations in the LoongArch binutils backend. Previously, their size was incorrectly set to 8 bytes; this change sets it to the correct value of 4 bytes, ensuring proper handling of Thread-Local Storage descriptor relocations.