Lines Matching defs:oat_file
800 bool PatchOat::PatchOatHeader(ElfFileImpl* oat_file) {
801 auto rodata_sec = oat_file->FindSectionByName(".rodata");
805 OatHeader* oat_header = reinterpret_cast<OatHeader*>(oat_file->Begin() + rodata_sec->sh_offset);
807 LOG(ERROR) << "Elf file " << oat_file->GetFilePath() << " has an invalid oat header";
823 bool PatchOat::PatchElf(ElfFileImpl* oat_file) {
827 if (!oat_file->ApplyOatPatchesTo(".text", delta_)) {
832 if (!PatchOatHeader<ElfFileImpl>(oat_file)) {
837 for (unsigned int i = 0; i < oat_file->GetProgramHeaderNum(); ++i) {
838 auto hdr = oat_file->GetProgramHeader(i);
855 oat_file->FixupProgramHeaders(delta_);
859 oat_file->FixupSectionHeaders(delta_);
862 oat_file->FixupDynamic(delta_);
866 if (!oat_file->FixupSymbols(delta_, true)) {
870 if (!oat_file->FixupSymbols(delta_, false)) {
875 if (!oat_file->FixupDebugSections(delta_)) {