summaryrefslogtreecommitdiff
path: root/patchoat/patchoat.h
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2015-08-11 18:03:47 -0700
committer Alex Light <allight@google.com> 2015-08-14 19:34:57 +0000
commit0eb76d2603a52d3e8759fcf480586886d70433d1 (patch)
tree8d38a89d6de7be77c437c9df12bf646b793ba639 /patchoat/patchoat.h
parent4500fcbe682d666a24c2e8f6e0cb90cfb35d3fa3 (diff)
Make patchoat match offset when given a patched image
Previously if we gave patchoat a patched image and a already patched (but improperly relocated) oat file it would not correctly patch the oat file to the same offset as the image. Bug: 22599792 Bug: 23119724 Change-Id: I8773022bd75c2e0b7eb529893b147cbd8792bcad
Diffstat (limited to 'patchoat/patchoat.h')
-rw-r--r--patchoat/patchoat.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/patchoat/patchoat.h b/patchoat/patchoat.h
index 43cdaea97b..87ecc618eb 100644
--- a/patchoat/patchoat.h
+++ b/patchoat/patchoat.h
@@ -163,13 +163,6 @@ class PatchOat {
return ret;
}
- // Look up the oat header from any elf file.
- static const OatHeader* GetOatHeader(const ElfFile* elf_file);
-
- // Templatized version to actually look up the oat header
- template <typename ElfFileImpl>
- static const OatHeader* GetOatHeader(const ElfFileImpl* elf_file);
-
// Walks through the old image and patches the mmap'd copy of it to the new offset. It does not
// change the heap.
class PatchVisitor {