/art/compiler/ |
elf_writer.cc | 25 #include "elf_file.h" 33 uintptr_t ElfWriter::GetOatDataAddress(ElfFile* elf_file) { 34 uintptr_t oatdata_address = elf_file->FindSymbolAddress(SHT_DYNSYM, 45 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, 50 CHECK(elf_file.get() != nullptr) << error_msg; 52 bool success = elf_file->GetLoadedSize(oat_loaded_size, &error_msg); 55 *oat_data_offset = GetOatDataAddress(elf_file.get()); 61 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, true, false, /*low_4gb*/false, &error_msg)); 62 CHECK(elf_file.get() != nullptr) << error_msg; 65 uintptr_t oatdata_address = ElfWriter::GetOatDataAddress(elf_file.get()) [all...] |
elf_writer_quick.h | 34 File* elf_file);
|
elf_writer_quick.cc | 92 File* elf_file); 132 File* elf_file) { 137 elf_file); 142 elf_file); 150 File* elf_file) 154 elf_file_(elf_file), 158 output_stream_(MakeUnique<BufferedOutputStream>(MakeUnique<FileOutputStream>(elf_file))),
|
elf_writer.h | 48 static uintptr_t GetOatDataAddress(ElfFile* elf_file);
|
/external/minijail/ |
elfparse.c | 17 ElfType parseElf ## bit(FILE *elf_file, uint8_t *pHead, int little_endian) \ 24 if (!elf_file || !pHead) \ 40 if (fseek(elf_file, pHeader->e_phoff, SEEK_SET) != 0) \ 44 if (fread(&pheader, sizeof(pheader), 1, elf_file) == 1) { \ 63 FILE *elf_file = NULL; local 66 elf_file = fopen(path, "r"); 67 if (elf_file) { 68 if (fread(pHeader, 1, HEADERSIZE, elf_file) == HEADERSIZE) { 73 ret = parseElf64(elf_file, pHeader, 1); 77 ret = parseElf64(elf_file, pHeader, 0) [all...] |
/bionic/tools/relocation_packer/src/ |
main.cc | 24 #include "elf_file.h" 122 relocation_packer::ElfFile<ELF32_traits> elf_file(fd.get()); 123 elf_file.SetPadding(is_padding); 126 status = elf_file.UnpackRelocations(); 128 status = elf_file.PackRelocations(); 131 relocation_packer::ElfFile<ELF64_traits> elf_file(fd.get()); 132 elf_file.SetPadding(is_padding); 135 status = elf_file.UnpackRelocations(); 137 status = elf_file.PackRelocations();
|
elf_file_unittest.cc | 5 #include "elf_file.h" 104 relocation_packer::ElfFile<ELF> elf_file(fileno(packed_relocs_so)); 107 EXPECT_TRUE(elf_file.PackRelocations()); 110 EXPECT_TRUE(elf_file.UnpackRelocations()); 140 relocation_packer::ElfFile<ELF> elf_file(fileno(relocs_so)); 143 EXPECT_FALSE(elf_file.UnpackRelocations()); 146 EXPECT_TRUE(elf_file.PackRelocations());
|
/toolchain/binutils/binutils-2.25/gold/ |
nacl.h | 198 elfcpp::Elf_file<size, big_endian, Sniff_file> elf_file(&file); 199 const unsigned int shnum = elf_file.shnum(); 202 if (elf_file.section_type(shndx) == elfcpp::SHT_NOTE) 204 Sniff_file::Location loc = elf_file.section_contents(shndx);
|
incremental-dump.cc | 230 elfcpp::Elf_file<size, big_endian, Incremental_binary> elf_file(inc); 232 unsigned int symtab_shndx = elf_file.find_section_by_type(elfcpp::SHT_SYMTAB); 238 Location symtab_location(elf_file.section_contents(symtab_shndx)); 243 unsigned int strtab_shndx = elf_file.section_link(symtab_shndx); 245 || strtab_shndx > elf_file.shnum() 246 || elf_file.section_type(strtab_shndx) != elfcpp::SHT_STRTAB) 251 Location strtab_location(elf_file.section_contents(strtab_shndx));
|
object.cc | 161 // elfcpp::Elf_file interface, and also called by the Object code 189 Object::read_section_data(elfcpp::Elf_file<size, big_endian, Object>* elf_file, 195 const off_t shoff = elf_file->shoff(); 202 const unsigned char* pshdrnames = pshdrs + elf_file->shstrndx() * shdr_size; [all...] |
object.h | 617 // Functions and types for the elfcpp::Elf_file interface. This 619 // elfcpp::Elf_file. 916 read_section_data(elfcpp::Elf_file<size, big_endian, Object>*, [all...] |
arm.cc | [all...] |
/bionic/libc/tools/ |
symbols.py | 31 def GetFromElf(elf_file, sym_type='--dyn-syms'): 44 output = subprocess.check_output(['readelf', sym_type, '-W', elf_file])
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/ |
android_profiling_helper.py | 33 def _ElfMachineId(elf_file): 34 headers = subprocess.check_output(['readelf', '-h', elf_file]) 38 def _ElfSectionAsString(elf_file, section): 39 return subprocess.check_output(['readelf', '-p', section, elf_file]) 42 def _ElfSectionMd5Sum(elf_file, section): 44 'readelf -p%s "%s" | md5sum' % (section, elf_file), shell=True)
|
/bionic/tools/relocation_packer/ |
Android.mk | 29 src/elf_file.cc \
|
/art/compiler/jit/ |
jit_compiler.cc | 72 std::vector<uint8_t> elf_file = debug::WriteDebugElfFileForClasses( local 74 CreateJITCodeEntry(std::move(elf_file));
|
/art/runtime/ |
elf_file.cc | 17 #include "elf_file.h" 66 std::unique_ptr<ElfFileImpl<ElfTypes>> elf_file(new ElfFileImpl<ElfTypes> 77 if (!elf_file->Setup(prot, flags, low_4gb, error_msg)) { 80 return elf_file.release(); 89 std::unique_ptr<ElfFileImpl<ElfTypes>> elf_file(new ElfFileImpl<ElfTypes> 92 if (!elf_file->Setup(prot, flags, low_4gb, error_msg)) { 95 return elf_file.release(); [all...] |
oat_file.cc | 40 #include "elf_file.h" 769 bool InitializeFromElfFile(ElfFile* elf_file, [all...] |
oat_file.h | 58 static OatFile* OpenWithElfFile(ElfFile* elf_file, const std::string& location,
|
runtime.cc | 65 #include "elf_file.h" 829 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file.release(), 834 if (elf_file.get() == nullptr) { 838 OatFile::OpenWithElfFile(elf_file.release(), oat_location, nullptr, &error_msg)); [all...] |
Android.mk | 52 elf_file.cc \
|
/system/core/libbacktrace/ |
BacktraceOffline.cpp | 686 std::string elf_file = filename.substr(pos + 2); local 700 ret_code = FindEntry(handle, ZipString(elf_file.c_str()), &zentry); 702 BACK_LOGW("failed to find %s in %s: %s", elf_file.c_str(), apk_file.c_str(), 707 BACK_LOGW("%s is compressed in %s, which doesn't support running directly", elf_file.c_str(), 715 BACK_LOGW("failed to read %s in %s: %s", elf_file.c_str(), apk_file.c_str(), 721 BACK_LOGW("failed to create binary for %s in %s: %s", elf_file.c_str(), apk_file.c_str(),
|
/art/patchoat/ |
patchoat.cc | 35 #include "elf_file.h" 95 static const OatHeader* GetOatHeader(const ElfFile* elf_file) { 97 if (!elf_file->GetSectionOffsetAndSize(".rodata", &off, nullptr)) { 101 OatHeader* oat_header = reinterpret_cast<OatHeader*>(elf_file->Begin() + off); 107 static bool ReadOatPatchDelta(const ElfFile* elf_file, off_t* delta, std::string* error_msg) { 108 const OatHeader* oat_header = GetOatHeader(elf_file); [all...] |
/art/compiler/optimizing/ |
optimizing_compiler.cc | 961 std::vector<uint8_t> elf_file = debug::WriteDebugElfFileForMethods( local [all...] |
/art/oatdump/ |
oatdump.cc | 115 File* elf_file = OS::CreateEmptyFile(output_name_.c_str()); local 117 MakeUnique<BufferedOutputStream>(MakeUnique<FileOutputStream>(elf_file))); 154 elf_file->GetPath(), rodata_size, text_size, oat_file_->BssSize()); [all...] |