[PATCH] D20793: [ELF] - Implemented support for test/binop relaxations from latest ABI.
Rafael Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Tue May 31 11:14:41 PDT 2016
On 31 May 2016 at 10:20, Rafael Ávila de Espíndola
<llvm-commits at lists.llvm.org> wrote:
> rafael added inline comments.
>
> ================
> Comment at: ELF/InputSection.cpp:260
> @@ -259,1 +259,3 @@
> return Body.getVA<ELFT>(A) - P;
> + case R_RELAX_GOT_PC_NOPIC:
> + return Body.getVA<ELFT>();
> ----------------
> This is the same value as R_ABS, move it there.
And with that you will need something like
+ // We are relaxing a rip relative to an absolute, so compensate for the old
+ // -4 addend.
+ Val += 4;
in target.cpp to compensate for the addend.
Cheers,
Rafael
More information about the llvm-commits
mailing list