Skip to content

Conversation

@smithp35
Copy link
Contributor

Bring TLS GOT generating relocations in line with non GOT generating relocations in #272.

The ABI rule is that static linkers should generate a GOT entry for each unique tuple of (S,A). However static linkers such as GNU ld and lld only generate a unique entry per unique S, and handle A inconsistently. With GNU ld ignoring A and lld adding it after. The only consistent behaviour between implementations is when A is 0.

@smithp35 smithp35 added the aaelf64 Issue affects ELF for the Arm Architecture label Feb 9, 2026
Copy link
Contributor

@DanielKristofKiss DanielKristofKiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Bring TLS GOT generating relocations in line with non GOT generating
relocations in ARM-software#272.

The ABI rule is that static linkers should generate a GOT entry for
each unique tuple of (S,A). However static linkers such as GNU ld
and lld only generate a unique entry per unique S, and handle A
inconsistently. With GNU ld ignoring A and lld adding it after.
The only consistent behaviour between implementations is when
A is 0.

Fixes ARM-software#296
@smithp35
Copy link
Contributor Author

Rebase to account for whitespace differences [NFC]

@smithp35 smithp35 merged commit 341e3d5 into ARM-software:main Feb 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aaelf64 Issue affects ELF for the Arm Architecture

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants