OSDN Git Service

Make system use patchoat to relocate during runtime.
authorAlex Light <allight@google.com>
Fri, 18 Jul 2014 21:57:04 +0000 (14:57 -0700)
committerBrian Carlstrom <bdc@google.com>
Wed, 6 Aug 2014 06:49:15 +0000 (23:49 -0700)
commit345c4b19758703793ed31024cfb79940e2c63b75
treea5442d66679102a69df4ffdd10a196b6aa72dab8
parenteaec11c954383665c9305a7b2eac240566630d88
Make system use patchoat to relocate during runtime.

Change dalvik_system_DexFile.cc so that isDexOptNeededInternal will be
able to indicate that a patchoat is required. Change default of relocate
option to be on.

Bug: 15358152

(cherry picked from commit 6e183f2e973a20f2eaca135c240908e1bf98c5d0)

Change-Id: Ib21f4f41b6cbf18094e3ca1a30d65a3b197b71b0
13 files changed:
Android.mk
compiler/driver/compiler_driver.cc
compiler/elf_patcher.cc
compiler/image_test.cc
runtime/class_linker.cc
runtime/class_linker.h
runtime/gc/space/image_space.cc
runtime/gc/space/image_space.h
runtime/globals.h
runtime/native/dalvik_system_DexFile.cc
runtime/parsed_options.h
runtime/utils.cc
runtime/utils_test.cc