[PATCH] alpha: Handle local weak undefined symbol value separately
Project / Subsystem
binutils / alpha
Date
2026-05-22
Proposer
H.J. Lu <hjl.tools@gmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • This change may introduce subtle ABI compatibility issues if not handled carefully.
- • The added complexity in relocation logic could potentially introduce new bugs.
- • The performance impact of the change is likely minimal, but should be measured.
All attributes
- project
- binutils
- subsystem
- alpha
- patch_id
- —
- discussion_id
- CAMe9rOo6ZP-TvzATQswWfYU6Ca9ynrA2ELr=09cEEOWu+LssmA@mail.gmail.com
- source_type
- public_inbox
- title
- [PATCH] alpha: Handle local weak undefined symbol value separately
- headline
- Alpha: Handle local weak undefined symbol value separately
- tldr
- The Alpha backend now handles TLS relocations against local weak undefined symbols separately, since their value is always 0.
- proposer
- H.J. Lu <hjl.tools@gmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • This change may introduce subtle ABI compatibility issues if not handled carefully.
- • The added complexity in relocation logic could potentially introduce new bugs.
- • The performance impact of the change is likely minimal, but should be measured.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • binutils
- • ld
- • alpha
- • elf
- • tls
- bugzilla_url
- —
- date
- 2026-05-22T00:00:00.000Z
[PATCH] alpha: Handle local weak undefined symbol value separately
This patch modifies the binutils elf64-alpha.c file to handle Thread Local Storage (TLS) relocations against local weak undefined symbols separately. The value of such symbols is always 0. The patch adds a new function elf64_alpha_local_undefweak_p and modifies elf64_alpha_relocate_section to implement this change. Test cases are added to ld/testsuite to verify the new functionality.