[LLD] [COFF] Interpret the immediate in ARM64 adr/adrp relocations as signed 21 bit
authorMartin Storsjö <martin@martin.st>
Sat, 20 Nov 2021 17:55:18 +0000 (19:55 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 23 Nov 2021 08:13:01 +0000 (10:13 +0200)
commit7c15da67614eca9272553ecfe8c1a0f6f68c134b
tree1e1ceed6b3d22a3d1bfde9e1b29d24c711f9cefb
parent06d0d449d8555ae5f1ac33e8d4bb4ae40eb080d3
[LLD] [COFF] Interpret the immediate in ARM64 adr/adrp relocations as signed 21 bit

This matches how MS link.exe interprets this relocation.

Differential Revision: https://reviews.llvm.org/D114347
lld/COFF/Chunks.cpp
lld/test/COFF/arm64-relocs-imports.test