Landing: 3483ca0a0e7a
Project / Subsystem
gcc / loongarch
Date
2026-07-09
Author
mengqinggang
Commit
3483ca0a0e7ab82d1159cbf6e59f8642114535b7
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- loongarch
- patch_id
- —
- commit_hash
- 3483ca0a0e7ab82d1159cbf6e59f8642114535b7
- source_type
- github
- headline
- LoongArch: Remove addend for .dtprelword and .dtpreldword
- tldr
- LoongArch TLS access no longer needs addend offset due to TP register pointing to TLS block start.
- author
- mengqinggang
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • loongarch
- • tls
- • dwarf
- • relocation
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-09T00:00:00.000Z
This commit removes an unnecessary addend offset from .dtprelword and .dtpreldword directives on LoongArch. The architecture’s thread pointer (TP) register directly points to the beginning of the Thread-Local Storage (TLS) block, eliminating the need for the previous 0x8000 offset. A new test case is introduced to verify this change.