summaryrefslogtreecommitdiffstats
path: root/runtime/oat_file.h
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2014-08-22 17:49:35 -0700
committerAlex Light <allight@google.com>2014-08-26 16:39:14 -0700
commit84d7605f93f1e6e86a16e02017e305c90e93117a (patch)
tree4602fe9beb2c0e59ff89a828473c1c2acf07930b /runtime/oat_file.h
parenta9ffc181c61f5634753bf1039ed50bf22c800fde (diff)
downloadart-84d7605f93f1e6e86a16e02017e305c90e93117a.tar.gz
art-84d7605f93f1e6e86a16e02017e305c90e93117a.tar.bz2
art-84d7605f93f1e6e86a16e02017e305c90e93117a.zip
Support booting without functioning boot.oat/art patchoat.
Bug: 17000769 Change-Id: I89c26a905af12ea288742368c2c038afd57a879a
Diffstat (limited to 'runtime/oat_file.h')
-rw-r--r--runtime/oat_file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/oat_file.h b/runtime/oat_file.h
index 8535bf4133..5b24e8fd6f 100644
--- a/runtime/oat_file.h
+++ b/runtime/oat_file.h
@@ -40,6 +40,10 @@ class OatHeader;
class OatFile {
public:
+ // Opens an oat file contained within the given elf file. This is always opened as
+ // non-executable at the moment.
+ static OatFile* OpenWithElfFile(ElfFile* elf_file, const std::string& location,
+ std::string* error_msg);
// Open an oat file. Returns NULL on failure. Requested base can
// optionally be used to request where the file should be loaded.
static OatFile* Open(const std::string& filename,