Home
last modified time | relevance | path

Searched refs:ElfFile (Results 1 – 19 of 19) sorted by relevance

/art/compiler/
Delf_fixup.h27 class ElfFile; variable
37 static bool FixupDynamic(ElfFile& elf_file, uintptr_t base_address);
40 static bool FixupSectionHeaders(ElfFile& elf_file, uintptr_t base_address);
43 static bool FixupProgramHeaders(ElfFile& elf_file, uintptr_t base_address);
46 static bool FixupSymbols(ElfFile& elf_file, uintptr_t base_address, bool dynamic);
49 static bool FixupRelocations(ElfFile& elf_file, uintptr_t base_address);
Delf_writer_test.cc91 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, false, &error_msg)); in TEST_F()
99 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, false, &error_msg)); in TEST_F()
107 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, true, &error_msg)); in TEST_F()
Delf_patcher.h36 static bool Patch(const CompilerDriver* driver, ElfFile* elf_file,
42 static bool Patch(const CompilerDriver* driver, ElfFile* elf_file,
48 static bool Patch(const CompilerDriver* driver, ElfFile* elf_file, in Patch()
56 static bool Patch(const CompilerDriver* driver, ElfFile* elf_file, in Patch()
65 ElfPatcher(const CompilerDriver* driver, ElfFile* elf_file, const OatFile* oat_file, in ElfPatcher()
110 ElfFile* elf_file_;
Delf_writer.cc33 uint32_t ElfWriter::GetOatDataAddress(ElfFile* elf_file) { in GetOatDataAddress()
45 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, false, false, &error_msg)); in GetOatElfInformation()
Delf_fixup.cc33 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, &error_msg)); in Fixup()
68 bool ElfFixup::FixupDynamic(ElfFile& elf_file, uintptr_t base_address) { in FixupDynamic()
86 bool ElfFixup::FixupSectionHeaders(ElfFile& elf_file, uintptr_t base_address) { in FixupSectionHeaders()
104 bool ElfFixup::FixupProgramHeaders(ElfFile& elf_file, uintptr_t base_address) { in FixupProgramHeaders()
125 bool ElfFixup::FixupSymbols(ElfFile& elf_file, uintptr_t base_address, bool dynamic) { in FixupSymbols()
149 bool ElfFixup::FixupRelocations(ElfFile& elf_file, uintptr_t base_address) { in FixupRelocations()
Delf_writer.h33 class ElfFile; variable
45 static uint32_t GetOatDataAddress(ElfFile* elf_file);
Delf_stripper.cc33 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, error_msg)); in Strip()
Delf_writer_mclinker.cc350 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(elf_file_, true, false, &error_msg)); in FixupOatMethodOffsets()
388 uint32_t ElfWriterMclinker::FixupCompiledCodeOffset(ElfFile& elf_file, in FixupCompiledCodeOffset()
Delf_writer_mclinker.h71 uint32_t FixupCompiledCodeOffset(ElfFile& elf_file,
Delf_patcher.cc39 bool ElfPatcher::Patch(const CompilerDriver* driver, ElfFile* elf_file, in Patch()
59 bool ElfPatcher::Patch(const CompilerDriver* driver, ElfFile* elf, const OatFile* oat_file, in Patch()
Dimage_writer.cc1228 static OatHeader* GetOatHeaderFromElf(ElfFile* elf) { in GetOatHeaderFromElf()
1238 std::unique_ptr<ElfFile> elf(ElfFile::Open(elf_file, PROT_READ|PROT_WRITE, in PatchOatCodeAndMethods()
/art/runtime/
Delf_file.cc109 ElfFile::ElfFile(File* file, bool writable, bool program_header_only, uint8_t* requested_base) in ElfFile() function in art::ElfFile
132 ElfFile* ElfFile::Open(File* file, bool writable, bool program_header_only, in Open()
134 std::unique_ptr<ElfFile> elf_file(new ElfFile(file, writable, program_header_only, in Open()
151 ElfFile* ElfFile::Open(File* file, int prot, int flags, std::string* error_msg) { in Open()
152 std::unique_ptr<ElfFile> elf_file(new ElfFile(file, (prot & PROT_WRITE) == PROT_WRITE, false, in Open()
160 bool ElfFile::Setup(int prot, int flags, std::string* error_msg) { in Setup()
317 ElfFile::~ElfFile() { in ~ElfFile()
327 bool ElfFile::CheckAndSet(Elf32_Off offset, const char* label, in CheckAndSet()
338 bool ElfFile::CheckSectionsLinked(const byte* source, const byte* target) const { in CheckSectionsLinked()
369 bool ElfFile::CheckSectionsExist(std::string* error_msg) const { in CheckSectionsExist()
[all …]
Delf_file.h41 class ElfFile {
43 static ElfFile* Open(File* file, bool writable, bool program_header_only, std::string* error_msg,
47 static ElfFile* Open(File* file, int mmap_prot, int mmap_flags, std::string* error_msg);
48 ~ElfFile();
115 ElfFile(File* file, bool writable, bool program_header_only, uint8_t* requested_base);
204 std::unique_ptr<ElfFile> gdb_file_mapping_;
Doat_file.h36 class ElfFile; variable
45 static OatFile* OpenWithElfFile(ElfFile* elf_file, const std::string& location,
78 ElfFile* GetElfFile() const { in GetElfFile()
334 std::unique_ptr<ElfFile> elf_file_;
Doat_file.cc45 OatFile* OatFile::OpenWithElfFile(ElfFile* elf_file, in OpenWithElfFile()
199 elf_file_.reset(ElfFile::Open(file, writable, /*program_header_only*/true, error_msg, in ElfFileOpen()
Druntime.cc617 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file.release(), false, false, &error_msg)); in OpenDexFilesFromImage()
/art/patchoat/
Dpatchoat.h62 PatchOat(ElfFile* oat_file, off_t delta, TimingLogger* timings) in PatchOat()
68 PatchOat(InstructionSet isa, ElfFile* oat_file, MemMap* image, in PatchOat()
86 static MaybePic IsOatPic(const ElfFile* oat_in);
123 static const OatHeader* GetOatHeader(const ElfFile* elf_file);
142 std::unique_ptr<ElfFile> oat_file_;
Dpatchoat.cc274 std::unique_ptr<ElfFile> elf(ElfFile::Open(input_oat, in Patch()
374 PatchOat::MaybePic PatchOat::IsOatPic(const ElfFile* oat_in) { in IsOatPic()
501 const OatHeader* PatchOat::GetOatHeader(const ElfFile* elf_file) { in GetOatHeader()
572 std::unique_ptr<ElfFile> elf(ElfFile::Open(input_oat, in Patch()
/art/dex2oat/
Ddex2oat.cc341 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(oat_file, PROT_READ|PROT_WRITE, in PatchOatCode()