Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AAELF64] TLS GOT generating relocations must have 0 addend. #313

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant