summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
diff options
context:
space:
mode:
authorTim Northover <Tim.Northover@arm.com>2013-05-04 20:13:59 +0000
committerTim Northover <Tim.Northover@arm.com>2013-05-04 20:13:59 +0000
commit85829bb98a998cff8f364c12d172da948ca225f4 (patch)
tree05042b20268e548dd01288ce473a22479bc6d32d /lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
parentbd121f5b3ab3703527b810be1dc38e15a6f8944a (diff)
downloadllvm-85829bb98a998cff8f364c12d172da948ca225f4.tar.gz
llvm-85829bb98a998cff8f364c12d172da948ca225f4.tar.bz2
llvm-85829bb98a998cff8f364c12d172da948ca225f4.tar.xz
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
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h')
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
index 12e3122b4c..238254440e 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
+++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
@@ -49,6 +49,12 @@ class RuntimeDyldELF : public RuntimeDyldImpl {
uint32_t Type,
int32_t Addend);
+ void resolveAArch64Relocation(const SectionEntry &Section,
+ uint64_t Offset,
+ uint64_t Value,
+ uint32_t Type,
+ int64_t Addend);
+
void resolveARMRelocation(const SectionEntry &Section,
uint64_t Offset,
uint32_t Value,