[COFF] Add initial support for some ARM64 relocations and import thunks
authorMartin Storsjo <martin@martin.st>
Tue, 11 Jul 2017 07:22:44 +0000 (07:22 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 11 Jul 2017 07:22:44 +0000 (07:22 +0000)
commit2779165d8cee46d1dfc8ad63e73b51839ed9c30f
tree731264beb1001115911efe43b4ab3467cb85fe1e
parent0b7b59ada33abb48d5b992ddae0fc8ddca0232fa
[COFF] Add initial support for some ARM64 relocations and import thunks

This is enough to link a working hello world executable, with
a call to an imported function, a string constant passed to
the imported function, and loads from a global variable.

Differential Revision: https://reviews.llvm.org/D34964

llvm-svn: 307629
lld/COFF/Chunks.cpp
lld/COFF/Chunks.h
lld/COFF/Symbols.cpp
lld/test/COFF/Inputs/library-arm64.lib [new file with mode: 0644]
lld/test/COFF/arm64-relocs-imports.test [new file with mode: 0644]