Home
last modified time | relevance | path

Searched refs:elf_file_ (Results 1 – 8 of 8) sorted by relevance

/art/compiler/
Delf_patcher.cc137 CHECK_GE(ret, reinterpret_cast<uintptr_t>(elf_file_->Begin())); in GetPatchLocation()
138 CHECK_LT(ret, reinterpret_cast<uintptr_t>(elf_file_->End())); in GetPatchLocation()
281 Elf32_Shdr* shdr = elf_file_->FindSectionByName(".oat_patches"); in WriteOutPatchData()
283 CHECK_EQ(shdr, elf_file_->FindSectionByType(SHT_OAT_PATCH)) in WriteOutPatchData()
287 CHECK_LE(reinterpret_cast<uintptr_t>(elf_file_->Begin()) + shdr->sh_offset + shdr->sh_size, in WriteOutPatchData()
288 reinterpret_cast<uintptr_t>(elf_file_->End())) << "section is too large"; in WriteOutPatchData()
289 CHECK(shdr == elf_file_->GetSectionHeader(elf_file_->GetSectionHeaderNum() - 1) || in WriteOutPatchData()
293 memcpy(elf_file_->Begin() + shdr->sh_offset, patches_.data(), in WriteOutPatchData()
303 *error_msg_ += elf_file_->GetFile().GetPath(); in WriteOutPatchData()
Delf_writer_mclinker.cc125 linker_config_->options().setSOName(elf_file_->GetPath()); in Init()
162 …std::unique_ptr<OatFile> oat_file(OatFile::OpenMemory(oat_contents, elf_file_->GetPath(), &error_m… in AddOatInput()
163 CHECK(oat_file.get() != NULL) << elf_file_->GetPath() << ": " << error_msg; in AddOatInput()
328 LOG(ERROR) << "Failed to link " << elf_file_->GetPath(); in Link()
334 int fd = dup(elf_file_->Fd()); in Link()
336 PLOG(ERROR) << "Failed to dup file descriptor for " << elf_file_->GetPath(); in Link()
340 LOG(ERROR) << "Failed to emit " << elf_file_->GetPath(); in Link()
344 LOG(INFO) << "ELF file written successfully: " << elf_file_->GetPath(); in Link()
350 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(elf_file_, true, false, &error_msg)); in FixupOatMethodOffsets()
351 CHECK(elf_file.get() != NULL) << elf_file_->GetPath() << ": " << error_msg; in FixupOatMethodOffsets()
Delf_writer.h49 : compiler_driver_(&driver), elf_file_(elf_file) { in ElfWriter()
61 File* const elf_file_; variable
Delf_patcher.h68 : compiler_driver_(driver), elf_file_(elf_file), oat_file_(oat_file), in ElfPatcher()
110 ElfFile* elf_file_; variable
Delf_writer_quick.h222 elf_file_(elf_file), in oat_writer_()
252 File* elf_file_; variable
Delf_writer_quick.cc292 std::string file_name(elf_file_->GetPath()); in Write()
605 if (!WriteOutFile(pieces, elf_file_)) { in Write()
606 LOG(ERROR) << "Unable to write to file " << elf_file_->GetPath(); in Write()
921 ElfBuilder builder(oat_writer, elf_file_, compiler_driver_->GetInstructionSet(), 0, in Write()
/art/runtime/
Doat_file.h79 CHECK_NE(reinterpret_cast<uintptr_t>(elf_file_.get()), reinterpret_cast<uintptr_t>(nullptr)) in GetElfFile()
81 return elf_file_.get(); in GetElfFile()
334 std::unique_ptr<ElfFile> elf_file_; variable
Doat_file.cc49 oat_file->elf_file_.reset(elf_file); in OpenWithElfFile()
199 elf_file_.reset(ElfFile::Open(file, writable, /*program_header_only*/true, error_msg, in ElfFileOpen()
201 if (elf_file_.get() == nullptr) { in ElfFileOpen()
205 bool loaded = elf_file_->Load(executable, error_msg); in ElfFileOpen()
210 begin_ = elf_file_->FindDynamicSymbolAddress("oatdata"); in ElfFileOpen()
222 end_ = elf_file_->FindDynamicSymbolAddress("oatlastword"); in ElfFileOpen()