Home
last modified time | relevance | path

Searched refs:oat_header (Results 1 – 10 of 10) sorted by relevance

/art/compiler/
Doat_test.cc141 const OatHeader& oat_header = oat_file->GetOatHeader(); in TEST_F() local
142 ASSERT_TRUE(oat_header.IsValid()); in TEST_F()
143 ASSERT_EQ(1U, oat_header.GetDexFileCount()); // core in TEST_F()
144 ASSERT_EQ(42U, oat_header.GetImageFileLocationOatChecksum()); in TEST_F()
145 ASSERT_EQ(4096U, oat_header.GetImageFileLocationOatDataBegin()); in TEST_F()
146 ASSERT_EQ("lue.art", std::string(oat_header.GetStoreValueByKey(OatHeader::kImageLocationKey))); in TEST_F()
199 OatHeader* oat_header = OatHeader::Create(instruction_set, in TEST_F() local
205 ASSERT_NE(oat_header, nullptr); in TEST_F()
206 ASSERT_TRUE(oat_header->IsValid()); in TEST_F()
208 char* magic = const_cast<char*>(oat_header->GetMagic()); in TEST_F()
[all …]
Delf_patcher.h66 OatHeader* oat_header, uintptr_t oat_data_begin, in ElfPatcher() argument
69 oat_header_(oat_header), oat_data_begin_(oat_data_begin), get_image_address_(cb), in ElfPatcher()
Doat_writer.cc1114 void OatWriter::OatDexFile::UpdateChecksum(OatHeader* oat_header) const { in UpdateChecksum()
1115 oat_header->UpdateChecksum(&dex_file_location_size_, sizeof(dex_file_location_size_)); in UpdateChecksum()
1116 oat_header->UpdateChecksum(dex_file_location_data_, dex_file_location_size_); in UpdateChecksum()
1117 oat_header->UpdateChecksum(&dex_file_location_checksum_, sizeof(dex_file_location_checksum_)); in UpdateChecksum()
1118 oat_header->UpdateChecksum(&dex_file_offset_, sizeof(dex_file_offset_)); in UpdateChecksum()
1119 oat_header->UpdateChecksum(&methods_offsets_[0], in UpdateChecksum()
1237 void OatWriter::OatClass::UpdateChecksum(OatHeader* oat_header) const { in UpdateChecksum()
1238 oat_header->UpdateChecksum(&status_, sizeof(status_)); in UpdateChecksum()
1239 oat_header->UpdateChecksum(&type_, sizeof(type_)); in UpdateChecksum()
1242 oat_header->UpdateChecksum(&method_bitmap_size_, sizeof(method_bitmap_size_)); in UpdateChecksum()
[all …]
Delf_patcher.cc67 OatHeader* oat_header = reinterpret_cast<OatHeader*>(elf->Begin() + data_sec->sh_offset); in Patch() local
68 if (!oat_header->IsValid()) { in Patch()
73 ElfPatcher p(driver, elf, oat_file, oat_header, oat_data_start, cb, cb_data, error_msg); in Patch()
Doat_writer.h163 void UpdateChecksum(OatHeader* oat_header) const;
191 void UpdateChecksum(OatHeader* oat_header) const;
Dimage_writer.cc1251 OatHeader* oat_header = GetOatHeaderFromElf(elf.get()); in PatchOatCodeAndMethods() local
1252 CHECK(oat_header != nullptr); in PatchOatCodeAndMethods()
1253 CHECK(oat_header->IsValid()); in PatchOatCodeAndMethods()
1256 image_header->SetOatChecksum(oat_header->GetChecksum()); in PatchOatCodeAndMethods()
Delf_writer_quick.cc917 const OatHeader& oat_header = oat_writer->GetOatHeader(); in Write() local
918 Elf32_Word oat_data_size = oat_header.GetExecutableOffset(); in Write()
/art/patchoat/
Dpatchoat.cc382 const OatHeader* oat_header = GetOatHeader(oat_in); in IsOatPic() local
383 if (oat_header == nullptr) { in IsOatPic()
388 if (!oat_header->IsValid()) { in IsOatPic()
393 bool is_pic = oat_header->IsPic(); in IsOatPic()
507 OatHeader* oat_header = reinterpret_cast<OatHeader*>(elf_file->Begin() + rodata_sec->sh_offset); in GetOatHeader() local
508 return oat_header; in GetOatHeader()
643 OatHeader* oat_header = reinterpret_cast<OatHeader*>(oat_file_->Begin() + rodata_sec->sh_offset); in PatchOatHeader() local
644 if (!oat_header->IsValid()) { in PatchOatHeader()
648 oat_header->RelocateOat(delta_); in PatchOatHeader()
/art/oatdump/
Doatdump.cc164 const OatHeader& oat_header = oat_file_.GetOatHeader(); in Dump() local
167 os << oat_header.GetMagic() << "\n\n"; in Dump()
170 os << StringPrintf("0x%08x\n\n", oat_header.GetChecksum()); in Dump()
173 os << oat_header.GetInstructionSet() << "\n\n"; in Dump()
176 os << oat_header.GetInstructionSetFeatures().GetFeatureString() << "\n\n"; in Dump()
179 os << oat_header.GetDexFileCount() << "\n\n"; in Dump()
183 os << StringPrintf("0x%08x", oat_header.offset()); \ in Dump()
184 if (oat_header.offset() != 0 && options_->absolute_addresses_) { \ in Dump()
185 os << StringPrintf(" (%p)", oat_file_.Begin() + oat_header.offset()); \ in Dump()
214 oat_header.GetImagePatchDelta(), in Dump()
[all …]
/art/runtime/
Dclass_linker.cc1115 const OatHeader& oat_header = oat_file->GetOatHeader(); in VerifyOatChecksums() local
1116 bool ret = (oat_header.GetImageFileLocationOatChecksum() == image_oat_checksum); in VerifyOatChecksums()
1120 ret = ret && (oat_header.GetImagePatchDelta() == image_patch_delta) in VerifyOatChecksums()
1121 && (oat_header.GetImageFileLocationOatDataBegin() == image_oat_data_begin); in VerifyOatChecksums()
1526 const OatHeader& oat_header = oat_file->GetOatHeader(); in CheckOatFile() local
1528 uint32_t oat_image_checksum = oat_header.GetImageFileLocationOatChecksum(); in CheckOatFile()
1540 reinterpret_cast<void*>(oat_header.GetImageFileLocationOatDataBegin()); in CheckOatFile()
1547 int32_t oat_patch_delta = oat_header.GetImagePatchDelta(); in CheckOatFile()