OSDN Git Service

Add patchoat check that input oat file has patch section.
authorJeff Hao <jeffhao@google.com>
Fri, 18 Mar 2016 04:32:45 +0000 (21:32 -0700)
committerJeff Hao <jeffhao@google.com>
Fri, 18 Mar 2016 04:47:24 +0000 (21:47 -0700)
commit99503b9805def2ed7d4fe4bf285c6fdd8ddce6ed
tree92e37fd7d8caf919dbcfc17a93c15d1eed780185
parentebd4dcc98888953ca45caa8c8d6bc15924a28879
Add patchoat check that input oat file has patch section.

Do this check before opening the output file in case this could be
causing the file to become truncated.

Bug: 27723864
Change-Id: I4e612eaaa55d4667afc8099c516a23d32a9ab7f4
patchoat/patchoat.cc
runtime/elf_file.cc
runtime/elf_file.h