Home
last modified time | relevance | path

Searched refs:elf_file (Results 1 – 13 of 13) sorted by relevance

/art/dex2oat/linker/
Delf_writer.cc25 uintptr_t ElfWriter::GetOatDataAddress(ElfFile* elf_file) { in GetOatDataAddress() argument
26 uintptr_t oatdata_address = elf_file->FindSymbolAddress(SHT_DYNSYM, in GetOatDataAddress()
37 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, in GetOatElfInformation() local
42 CHECK(elf_file.get() != nullptr) << error_msg; in GetOatElfInformation()
44 bool success = elf_file->GetLoadedSize(oat_loaded_size, &error_msg); in GetOatElfInformation()
47 *oat_data_offset = GetOatDataAddress(elf_file.get()); in GetOatElfInformation()
53 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, /*low_4gb*/false, &error_msg)); in Fixup() local
54 CHECK(elf_file.get() != nullptr) << error_msg; in Fixup()
57 uintptr_t oatdata_address = ElfWriter::GetOatDataAddress(elf_file.get()); in Fixup()
60 return elf_file->Fixup(base_address); in Fixup()
Delf_writer_quick.cc102 File* elf_file);
149 File* elf_file) { in CreateElfWriterQuick() argument
154 elf_file); in CreateElfWriterQuick()
159 elf_file); in CreateElfWriterQuick()
167 File* elf_file) in ElfWriterQuick() argument
171 elf_file_(elf_file), in ElfWriterQuick()
177 std::make_unique<BufferedOutputStream>(std::make_unique<FileOutputStream>(elf_file))), in ElfWriterQuick()
Delf_writer_quick.h36 File* elf_file);
Delf_writer.h52 static uintptr_t GetOatDataAddress(ElfFile* elf_file);
/art/compiler/jit/
Djit_compiler.cc77 std::vector<uint8_t> elf_file = debug::WriteDebugElfFileForClasses( in jit_types_loaded() local
82 AddNativeDebugInfoForJit(nullptr /* handle */, elf_file); in jit_types_loaded()
/art/runtime/
Delf_file.cc69 std::unique_ptr<ElfFileImpl<ElfTypes>> elf_file(new ElfFileImpl<ElfTypes> in Open() local
80 if (!elf_file->Setup(file, prot, flags, low_4gb, error_msg)) { in Open()
83 return elf_file.release(); in Open()
92 std::unique_ptr<ElfFileImpl<ElfTypes>> elf_file(new ElfFileImpl<ElfTypes> in Open() local
95 if (!elf_file->Setup(file, prot, flags, low_4gb, error_msg)) { in Open()
98 return elf_file.release(); in Open()
1866 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, /*low_4gb*/false, error_msg)); in Strip() local
1867 if (elf_file.get() == nullptr) { in Strip()
1871 if (elf_file->elf64_.get() != nullptr) { in Strip()
1872 return elf_file->elf64_->Strip(file, error_msg); in Strip()
[all …]
Doat_file.cc1189 ElfFile* elf_file,
1275 ElfFile* elf_file, in InitializeFromElfFile() argument
1284 elf_file_.reset(elf_file); in InitializeFromElfFile()
1287 bool has_section = elf_file->GetSectionOffsetAndSize(".rodata", &offset, &size); in InitializeFromElfFile()
1289 SetBegin(elf_file->Begin() + offset); in InitializeFromElfFile()
1290 SetEnd(elf_file->Begin() + size + offset); in InitializeFromElfFile()
1394 ElfFile* elf_file, in OpenWithElfFile() argument
1400 return oat_file->InitializeFromElfFile(zip_fd, elf_file, vdex_file, abs_dex_location, error_msg) in OpenWithElfFile()
Doat_file.h78 ElfFile* elf_file,
Druntime.cc1019 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file.get(), in OpenDexFilesFromImage() local
1024 if (elf_file.get() == nullptr) { in OpenDexFilesFromImage()
1029 elf_file.release(), in OpenDexFilesFromImage()
DAndroid.bp54 "elf_file.cc",
/art/patchoat/
Dpatchoat.cc70 static const OatHeader* GetOatHeader(const ElfFile* elf_file) { in GetOatHeader() argument
72 if (!elf_file->GetSectionOffsetAndSize(".rodata", &off, nullptr)) { in GetOatHeader()
76 OatHeader* oat_header = reinterpret_cast<OatHeader*>(elf_file->Begin() + off); in GetOatHeader()
/art/compiler/optimizing/
Doptimizing_compiler.cc1408 std::vector<uint8_t> elf_file = debug::MakeElfFileForJIT( in GenerateJitDebugInfo() local
1414 AddNativeDebugInfoForJit(reinterpret_cast<const void*>(info.code_address), elf_file); in GenerateJitDebugInfo()
1418 << " size=" << PrettySize(elf_file.size()) in GenerateJitDebugInfo()
/art/oatdump/
Doatdump.cc139 std::unique_ptr<File> elf_file(OS::CreateEmptyFile(output_name_.c_str())); in Symbolize() local
140 if (elf_file == nullptr) { in Symbolize()
145 std::make_unique<linker::FileOutputStream>(elf_file.get())); in Symbolize()
172 builder_->PrepareDynamicSection(elf_file->GetPath(), in Symbolize()
225 if (elf_file->FlushCloseOrErase() != 0) { in Symbolize()
228 elf_file.reset(); in Symbolize()