[PATCH] D102985: [lld][ELF][SPARC] Fix GOT-relative relocations
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 20 10:03:49 PDT 2021
jrtc27 added a comment.
In D102985#2829308 <https://reviews.llvm.org/D102985#2829308>, @LemonBoy wrote:
> In D102985#2829305 <https://reviews.llvm.org/D102985#2829305>, @jrtc27 wrote:
>
>> Ok, so you need R_RELAX_GOT_OFF to match R_RELAX_GOT_PC?
>
> A relocation that behaves as `R_GOT_OFF` or, when it's possible to relax it, as a `R_GOTREL`.
Yes, the R_GOT_OFF version of what R_RELAX_GOT_PC is to R_GOT_PC (e.g. `movq foo at GOTPCREL(%rip), %rax` -> `leaq foo(%rip)`, where the latter means `leaq foo at PCREL(%rip)` but that's implied by the `%rip` base).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102985/new/
https://reviews.llvm.org/D102985
More information about the llvm-commits
mailing list