diff options
author | James Molloy <james.molloy@arm.com> | 2014-04-30 10:15:41 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2014-04-30 10:15:41 +0000 |
commit | 44ff92f64a995d4db7019e92198909dbcdd4d703 (patch) | |
tree | de23efdbdaf421976ce2aeb2ff62d83c413f62c6 /lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | |
parent | c447befac4eb8f914292a2d95041fd4165bd26e3 (diff) | |
download | llvm-44ff92f64a995d4db7019e92198909dbcdd4d703.tar.gz llvm-44ff92f64a995d4db7019e92198909dbcdd4d703.tar.bz2 llvm-44ff92f64a995d4db7019e92198909dbcdd4d703.tar.xz |
[ARM64] Try and make the ELF MCJIT *slightly* less broken for ARM64.
A bunch of switch cases were missing, not just for ARM64 but also for
AArch64_BE. I've fixed all those, but there's zero testing as
ExecutionEngine tests are disabled when crosscompiling and I don't
have a native platform available to test on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 12b3e8d75d..0956761187 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp @@ -516,7 +516,8 @@ void RuntimeDyldImpl::addRelocationForSymbol(const RelocationEntry &RE, } uint8_t *RuntimeDyldImpl::createStubFunction(uint8_t *Addr) { - if (Arch == Triple::aarch64 || Arch == Triple::aarch64_be) { + if (Arch == Triple::aarch64 || Arch == Triple::aarch64_be || + Arch == Triple::arm64 || Arch == Triple::arm64_be) { // This stub has to be able to access the full address space, // since symbol lookup won't necessarily find a handy, in-range, // PLT stub for functions which could be anywhere. |