summaryrefslogtreecommitdiffstats
path: root/runtime/oat_file.h
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-10-23 11:37:40 -0700
committerAndreas Gampe <agampe@google.com>2014-10-27 18:52:28 -0700
commit7ba649636c4475c3992fa15a57acd2546d69ff38 (patch)
tree63b3e30483d2a838bcaa3337535d4828f3c1ea33 /runtime/oat_file.h
parente74b720d752469d3883f3589de863e8fc82c6338 (diff)
downloadart-7ba649636c4475c3992fa15a57acd2546d69ff38.tar.gz
art-7ba649636c4475c3992fa15a57acd2546d69ff38.tar.bz2
art-7ba649636c4475c3992fa15a57acd2546d69ff38.zip
ART: Add pic flag to oat header store
Add the compile-time PIC flag to the oat-header key-value store. Ignore image offset and patch delta when loading PIC oat files. Change-Id: Ie1f1ef37125386a968228033d1e2bec565315510
Diffstat (limited to 'runtime/oat_file.h')
-rw-r--r--runtime/oat_file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/oat_file.h b/runtime/oat_file.h
index 734b9b3587..ad6871d637 100644
--- a/runtime/oat_file.h
+++ b/runtime/oat_file.h
@@ -72,6 +72,8 @@ class OatFile {
return is_executable_;
}
+ bool IsPic() const;
+
ElfFile* GetElfFile() const {
CHECK_NE(reinterpret_cast<uintptr_t>(elf_file_.get()), reinterpret_cast<uintptr_t>(nullptr))
<< "Cannot get an elf file from " << GetLocation();