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
- • Correctly represents TLS descriptor sizes, potentially enabling smaller code or data footprints.
- • Ensures ABI compatibility by adhering to the correct relocation encoding.
All attributes
- project
- binutils
- subsystem
- loongarch
- patch_id
- —
- discussion_id
- 20260707174719.1883721-2-mengqinggang@loongson.cn
- source_type
- public_inbox
- title
- LoongArch: Fix the size of tls desc relocations
- headline
- LoongArch: Fix the size of tls desc relocations
- tldr
- Adjusts relocation sizes for LoongArch TLS descriptors from 8 to 4 bytes.
- proposer
- mengqinggang <mengqinggang@loongson.cn>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Correctly represents TLS descriptor sizes, potentially enabling smaller code or data footprints.
- • Ensures ABI compatibility by adhering to the correct relocation encoding.
- series_id
- binutils:loongarch: fix the size of tls desc relocations
- series_role
- reply
- series_parts
- []
- tags
-
- • binutils
- • LoongArch
- • linker
- • TLS
- • relocations
- bugzilla_url
- —
- date
- 2026-07-07T00:00:00.000Z
LoongArch: Fix the size of tls desc relocations
This patch corrects the size of R_LARCH_TLS_DESC64_* relocations for the LoongArch architecture from 8 bytes to 4 bytes. This change is part of a larger series aimed at optimizing linker relaxation.