summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/elf_loader.h
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2012-03-28 18:31:07 +0800
committer Shih-wei Liao <sliao@google.com> 2012-04-06 17:03:33 -0700
commit0c717dd1c56bd29cf860d0feda8e629dab2cadb3 (patch)
treea587807a9821ba6986e56fc9d3fed68540e41268 /src/compiler_llvm/elf_loader.h
parentccb7bf1271560783adccddb2ab74c53d0efd3fd1 (diff)
Add ELF loader to OatFile.
Change-Id: I062c3cc78ff9a35d0efcbc9451e7e7ccb055667b
Diffstat (limited to 'src/compiler_llvm/elf_loader.h')
-rw-r--r--src/compiler_llvm/elf_loader.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler_llvm/elf_loader.h b/src/compiler_llvm/elf_loader.h
index 5c8063a253..9e8137f7e6 100644
--- a/src/compiler_llvm/elf_loader.h
+++ b/src/compiler_llvm/elf_loader.h
@@ -19,6 +19,7 @@
#include "elf_image.h"
#include "globals.h"
+#include "oat_file.h"
#include "object.h"
#include <android/librsloader.h>
@@ -35,7 +36,10 @@ class ElfLoader {
public:
~ElfLoader();
- bool LoadElfAt(size_t elf_idx, const ElfImage& elf_image);
+ bool LoadElfAt(size_t elf_idx, const ElfImage& elf_image,
+ OatFile::RelocationBehavior reloc);
+
+ void RelocateExecutable();
const void* GetMethodCodeAddr(size_t elf_idx, const Method* method) const;