Lines Matching refs:elf
144 ElfStatus GetBuildIdFromELFFile(const llvm::object::ELFObjectFile<ELFT>* elf, BuildId* build_id) { in GetBuildIdFromELFFile() argument
145 for (auto it = elf->section_begin(); it != elf->section_end(); ++it) { in GetBuildIdFromELFFile()
161 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(obj)) { in GetBuildIdFromObjectFile() local
162 return GetBuildIdFromELFFile(elf, build_id); in GetBuildIdFromObjectFile()
163 } else if (auto elf = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(obj)) { in GetBuildIdFromObjectFile() local
164 return GetBuildIdFromELFFile(elf, build_id); in GetBuildIdFromObjectFile()
240 ElfStatus ReadSectionFromELFFile(const llvm::object::ELFObjectFile<ELFT>* elf, const std::string& s… in ReadSectionFromELFFile() argument
242 for (llvm::object::section_iterator it = elf->section_begin(); it != elf->section_end(); ++it) { in ReadSectionFromELFFile()
319 void AddSymbolForPltSection(const llvm::object::ELFObjectFile<ELFT>* elf, in AddSymbolForPltSection() argument
327 for (auto it = elf->section_begin(); it != elf->section_end(); ++it) { in AddSymbolForPltSection()
334 const auto* shdr = elf->getSection(section_ref.getRawDataRefImpl()); in AddSymbolForPltSection()
351 ElfStatus ParseSymbolsFromELFFile(const llvm::object::ELFObjectFile<ELFT>* elf, in ParseSymbolsFromELFFile() argument
353 auto machine = elf->getELFFile()->getHeader()->e_machine; in ParseSymbolsFromELFFile()
355 AddSymbolForPltSection(elf, callback); in ParseSymbolsFromELFFile()
356 if (elf->symbol_begin() != elf->symbol_end()) { in ParseSymbolsFromELFFile()
357 ReadSymbolTable(elf->symbol_begin(), elf->symbol_end(), callback, is_arm); in ParseSymbolsFromELFFile()
359 } else if (elf->dynamic_symbol_begin()->getRawDataRefImpl() != llvm::object::DataRefImpl()) { in ParseSymbolsFromELFFile()
360 ReadSymbolTable(elf->dynamic_symbol_begin(), elf->dynamic_symbol_end(), callback, is_arm); in ParseSymbolsFromELFFile()
363 ElfStatus result = ReadSectionFromELFFile(elf, ".gnu_debugdata", &debugdata); in ParseSymbolsFromELFFile()
372 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(wrapper.obj)) { in ParseSymbolsFromELFFile() local
373 return ParseSymbolsFromELFFile(elf, callback); in ParseSymbolsFromELFFile()
374 } else if (auto elf = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(wrapper.obj)) { in ParseSymbolsFromELFFile() local
375 return ParseSymbolsFromELFFile(elf, callback); in ParseSymbolsFromELFFile()
422 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(wrapper.obj)) { in ParseSymbolsFromEmbeddedElfFile() local
423 return ParseSymbolsFromELFFile(elf, callback); in ParseSymbolsFromEmbeddedElfFile()
424 } else if (auto elf = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(wrapper.obj)) { in ParseSymbolsFromEmbeddedElfFile() local
425 return ParseSymbolsFromELFFile(elf, callback); in ParseSymbolsFromEmbeddedElfFile()
431 ElfStatus ReadMinExecutableVirtualAddress(const llvm::object::ELFFile<ELFT>* elf, uint64_t* p_vaddr… in ReadMinExecutableVirtualAddress() argument
434 for (auto it = elf->program_header_begin(); it != elf->program_header_end(); ++it) { in ReadMinExecutableVirtualAddress()
466 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(wrapper.obj)) { in ReadMinExecutableVirtualAddressFromElfFile() local
467 return ReadMinExecutableVirtualAddress(elf->getELFFile(), min_vaddr); in ReadMinExecutableVirtualAddressFromElfFile()
468 } else if (auto elf = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(wrapper.obj)) { in ReadMinExecutableVirtualAddressFromElfFile() local
469 return ReadMinExecutableVirtualAddress(elf->getELFFile(), min_vaddr); in ReadMinExecutableVirtualAddressFromElfFile()
486 if (auto elf = llvm::dyn_cast<llvm::object::ELF32LEObjectFile>(wrapper.obj)) { in ReadSectionFromElfFile() local
487 return ReadSectionFromELFFile(elf, section_name, content); in ReadSectionFromElfFile()
488 } else if (auto elf = llvm::dyn_cast<llvm::object::ELF64LEObjectFile>(wrapper.obj)) { in ReadSectionFromElfFile() local
489 return ReadSectionFromELFFile(elf, section_name, content); in ReadSectionFromElfFile()