Do not mark pages executable unnecessarily to play nice with selinux
Change-Id: Ief4a5da38ac7c2cf7bf6f7a640cb63c5e8ed03bd
diff --git a/runtime/elf_file.h b/runtime/elf_file.h
index 59ce7f5..cb95cb0 100644
--- a/runtime/elf_file.h
+++ b/runtime/elf_file.h
@@ -113,8 +113,9 @@
// Returns the expected size when the file is loaded at runtime
size_t GetLoadedSize();
- // Load segments into memory based on PT_LOAD program headers
- bool Load();
+ // Load segments into memory based on PT_LOAD program headers.
+ // executable is true at run time, false at compile time.
+ bool Load(bool executable);
private:
ElfFile();