summaryrefslogtreecommitdiff
path: root/lld/COFF/Symbols.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2017-07-11 07:22:44 +0000
committerMartin Storsjo <martin@martin.st>2017-07-11 07:22:44 +0000
commit2779165d8cee46d1dfc8ad63e73b51839ed9c30f (patch)
tree731264beb1001115911efe43b4ab3467cb85fe1e /lld/COFF/Symbols.cpp
parent0b7b59ada33abb48d5b992ddae0fc8ddca0232fa (diff)
downloadllvm-2779165d8cee46d1dfc8ad63e73b51839ed9c30f.tar.gz
[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
Diffstat (limited to 'lld/COFF/Symbols.cpp')
-rw-r--r--lld/COFF/Symbols.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/COFF/Symbols.cpp b/lld/COFF/Symbols.cpp
index 1cf2934a355b..9b59079072a8 100644
--- a/lld/COFF/Symbols.cpp
+++ b/lld/COFF/Symbols.cpp
@@ -68,6 +68,8 @@ static Chunk *makeImportThunk(DefinedImportData *S, uint16_t Machine) {
return make<ImportThunkChunkX64>(S);
if (Machine == I386)
return make<ImportThunkChunkX86>(S);
+ if (Machine == ARM64)
+ return make<ImportThunkChunkARM64>(S);
assert(Machine == ARMNT);
return make<ImportThunkChunkARM>(S);
}