[MCJIT] Defer application of AArch64 MachO GOT relocations until resolve time.
authorLang Hames <lhames@gmail.com>
Tue, 21 Oct 2014 23:41:15 +0000 (23:41 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 21 Oct 2014 23:41:15 +0000 (23:41 +0000)
commit8c4980b307fe5d281f62dc753f0d807e183e134e
treebed14ad873cbe9240b8f8e94f4494f624ca52692
parentf6b403a753f1c3f87edb8c6306aa959c7b5f0da3
[MCJIT] Defer application of AArch64 MachO GOT relocations until resolve time.

On AArch64, GOT references are page relative (ADRP + LDR), so they can't be
applied until we know exactly where, within a page, the GOT entry will be in
the target address space.

Fixes <rdar://problem/18693976>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220347 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h
test/ExecutionEngine/RuntimeDyld/AArch64/MachO_ARM64_relocations.s