[COFF] Fix ARM and ARM64 REL32 relocations to be relative to the end of the relocation
authorMartin Storsjö <martin@martin.st>
Tue, 11 May 2021 07:04:02 +0000 (10:04 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 12 May 2021 06:53:43 +0000 (09:53 +0300)
commit382c505d9cfca8adaec47aea2da7bbcbc00fc05c
treeca7e85fc2de902a94abe26c8b8a028f20ae90b03
parent2721e27c3aa34841db3fc0b4da25890288652d50
[COFF] Fix ARM and ARM64 REL32 relocations to be relative to the end of the relocation

This matches how they are defined on X86.

This should fix the relative lookup tables pass for COFF, allowing
it to be reenabled.

Differential Revision: https://reviews.llvm.org/D102217
llvm/lib/MC/WinCOFFObjectWriter.cpp
llvm/test/MC/AArch64/coff-relocations.s
llvm/test/MC/ARM/coff-relocations.s