AArch64: implement first relocation required for MCJIT
authorTim Northover <Tim.Northover@arm.com>
Sat, 4 May 2013 20:13:59 +0000 (20:13 +0000)
committerTim Northover <Tim.Northover@arm.com>
Sat, 4 May 2013 20:13:59 +0000 (20:13 +0000)
commit85829bb98a998cff8f364c12d172da948ca225f4
tree05042b20268e548dd01288ce473a22479bc6d32d
parentbd121f5b3ab3703527b810be1dc38e15a6f8944a
AArch64: implement first relocation required for MCJIT

R_AARCH64_PCREL32 is present in even trivial .eh_frame sections and so
is required to compile any function without the "nounwind" attribute.

This change implements very basic infrastructure in the RuntimeDyldELF
file and allows (for example) the test-shift.ll MCJIT test to pass
on AArch64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181131 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp