abi-aa icon indicating copy to clipboard operation
abi-aa copied to clipboard

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

Open smithp35 opened this issue 10 months ago • 0 comments

Bring TLS GOT generating relocations in line with non GOT generating relocations in https://github.com/ARM-software/abi-aa/pull/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 avatar Feb 25 '25 10:02 smithp35