Home | History | Annotate | Download | only in patchoat

Lines Matching full:oat_file_

328   CHECK(oat_file_.get() != nullptr);
330 size_t expect = oat_file_->Size();
331 if (out->WriteFully(reinterpret_cast<char*>(oat_file_->Begin()), expect) &&
608 Elf32_Shdr* patches_sec = oat_file_->FindSectionByName(".oat_patches");
615 uintptr_t* patches = reinterpret_cast<uintptr_t*>(oat_file_->Begin() + patches_sec->sh_offset);
617 Elf32_Shdr* oat_data_sec = oat_file_->FindSectionByName(".rodata");
618 Elf32_Shdr* oat_text_sec = oat_file_->FindSectionByName(".text");
639 Elf32_Shdr *rodata_sec = oat_file_->FindSectionByName(".rodata");
643 OatHeader* oat_header = reinterpret_cast<OatHeader*>(oat_file_->Begin() + rodata_sec->sh_offset);
645 LOG(ERROR) << "Elf file " << oat_file_->GetFile().GetPath() << " has an invalid oat header";
665 for (unsigned int i = 0; i < oat_file_->GetProgramHeaderNum(); i++) {
666 Elf32_Phdr* hdr = oat_file_->GetProgramHeader(i);
683 for (unsigned int i = 0; i < oat_file_->GetSectionHeaderNum(); i++) {
684 Elf32_Shdr* hdr = oat_file_->GetSectionHeader(i);
692 for (Elf32_Word i = 0; i < oat_file_->GetDynamicNum(); i++) {
693 Elf32_Dyn& dyn = oat_file_->GetDynamic(i);
694 if (IsDynamicSectionPointer(dyn.d_tag, oat_file_->GetHeader().e_machine)) {
701 Elf32_Shdr* dynsym_sec = oat_file_->FindSectionByName(".dynsym");
708 Elf32_Shdr* symtab_sec = oat_file_->FindSectionByName(".symtab");
719 Elf32_Sym* syms = reinterpret_cast<Elf32_Sym*>(oat_file_->Begin() + section->sh_offset);
721 reinterpret_cast<Elf32_Sym*>(oat_file_->Begin() + section->sh_offset + section->sh_size);
737 Elf32_Shdr* patches_sec = oat_file_->FindSectionByName(".oat_patches");
744 uintptr_t* patches = reinterpret_cast<uintptr_t*>(oat_file_->Begin() + patches_sec->sh_offset);
746 Elf32_Shdr* oat_text_sec = oat_file_->FindSectionByName(".text");
748 byte* to_patch = oat_file_->Begin() + oat_text_sec->sh_offset;