OSDN Git Service

Add patchoat tool to Art.
authorAlex Light <allight@google.com>
Thu, 12 Jun 2014 18:26:29 +0000 (11:26 -0700)
committerBrian Carlstrom <bdc@google.com>
Mon, 7 Jul 2014 22:19:58 +0000 (15:19 -0700)
commit53cb16b98acf3cf6f3a1e2204ad4958ecf1b5a3c
treec0129ef3de7148dc6a114449b4f751a560283eb0
parentae2efea4582df773f80be274bdc754f732b07df3
Add patchoat tool to Art.

Add a new executable called patchoat to art. This tool takes already
compiled images and oat files and changes their base address, acting as
a cheap form of relocation.

Add a --include-patch-information flag to dex2oat and code to add
required patch information to oat files created with the quick compiler.

Bug: 15358152

Change-Id: Ie0c580db45bb14ec180deb84930def6c3628d97d
19 files changed:
Android.mk
build/Android.oat.mk
compiler/driver/compiler_options.h
compiler/elf_fixup.cc
compiler/elf_writer_quick.cc
compiler/elf_writer_quick.h
compiler/image_writer.cc
compiler/image_writer.h
dex2oat/dex2oat.cc
patchoat/Android.mk [new file with mode: 0644]
patchoat/patchoat.cc [new file with mode: 0644]
patchoat/patchoat.h [new file with mode: 0644]
runtime/elf_file.cc
runtime/elf_file.h
runtime/elf_utils.h
runtime/image.cc
runtime/image.h
runtime/oat_file.h
runtime/utils.h