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 22:26:10 +0000 (15:26 -0700)
commit24ec0285c8c926c27e64e74ba0056e9cfdafd23d
tree849c6a03b5718a40282cf07b2d104515d2594294
parentcc4c1686a1e7125ec8b64341e573cc0959936dd3
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

(cherry-picked from commit 99503b9805def2ed7d4fe4bf285c6fdd8ddce6ed)

Change-Id: I2134ec65fb6d9582f4eb4c2619a5ffb7b987eaa6
patchoat/patchoat.cc
runtime/elf_file.cc
runtime/elf_file.h