From a59dd80f9f48cb750d329d4d4af2d99d72b484d1 Mon Sep 17 00:00:00 2001 From: Alex Light Date: Wed, 2 Jul 2014 16:28:08 -0700 Subject: Runtime can now be set to require relocation Add a pair of runtime flags -Xrelocate and -Xnorelocate that can force the runtime to require that all files that are run are relocated, to prevent attacks based on the known art base address. Add support for running patchoat on oat files compiled without an image. Change run-test to have new --prebuild and --relocate flags. Bug: 15358152 Change-Id: I91166c62dd1ab80e5cbcb7883a2cd0d56afca32d --- runtime/common_runtime_test.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/common_runtime_test.h') diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h index d0450317a3..eb963525e8 100644 --- a/runtime/common_runtime_test.h +++ b/runtime/common_runtime_test.h @@ -81,6 +81,8 @@ class CommonRuntimeTest : public testing::Test { // Allow subclases such as CommonCompilerTest to add extra options. virtual void SetUpRuntimeOptions(RuntimeOptions* options) {} + void ClearDirectory(const char* dirpath); + virtual void TearDown(); std::string GetLibCoreDexFileName(); -- cgit v1.2.3