| /llvm-project-15.0.7/llvm/tools/obj2yaml/ |
| H A D | elf2yaml.cpp | 30 ArrayRef<Elf_Shdr> Sections; 59 Error dumpSymbols(const Elf_Shdr *Symtab, 82 dumpContentSection(const Elf_Shdr *Shdr); 154 Expected<const Elf_Shdr *> ShdrOrErr = in getUniquedSymbolName() 312 const Elf_Shdr *SymTab = nullptr; in dump() 313 const Elf_Shdr *DynSymTab = nullptr; in dump() 315 for (const Elf_Shdr &Sec : Sections) { in dump() 623 return [this](const Elf_Shdr *S) { in dumpSections() 644 for (const Elf_Shdr &Sec : Sections) { in dumpSections() 732 const Elf_Shdr *Shdr = *ShdrOrErr; in dumpSymbol() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | ELF.h | 184 std::vector<Elf_Shdr> FakeSections; 201 const Elf_Shdr &Sec, 209 getStringTable(const Elf_Shdr &Section, 235 loadVersionMap(const Elf_Shdr *VerNeedSec, const Elf_Shdr *VerDefSec) const; 384 getSectionName(const Elf_Shdr &Section, 697 for (const Elf_Shdr &Sec : *SectionsOrError) { in getDynSymtabSize() 776 Elf_Shdr FakeShdr = {}; in createFakeSections() 792 return ArrayRef<Elf_Shdr>(); in sections() 811 const Elf_Shdr *First = in sections() 1125 const Elf_Shdr &SymTable = **SymTableOrErr; in getSHNDXTable() [all …]
|
| H A D | ELFObjectFile.h | 260 const Elf_Shdr *DotDynSymSec, const Elf_Shdr *DotSymtabSec, 800 const Elf_Shdr *ESec = *ESecOrErr; in getSymbolSection() 824 const Elf_Shdr *ESec = getSection(Sec); in moveSectionNext() 857 const Elf_Shdr *EShdr = getSection(Sec); in getSectionContents() 885 const Elf_Shdr *EShdr = getSection(Sec); in isSectionData() 893 const Elf_Shdr *EShdr = getSection(Sec); in isSectionBSS() 941 const Elf_Shdr *EShdr = getSection(Sec); in isBerkeleyData() 975 const Elf_Shdr *S = reinterpret_cast<const Elf_Shdr *>(Sec.p); in section_rel_end() 995 const Elf_Shdr *EShdr = getSection(Sec); in getRelocatedSection() 1130 const Elf_Shdr *SymTab = DotSymtabSec; in symbol_end() [all …]
|
| H A D | ELFTypes.h | 114 using Elf_Shdr = typename ELFT::Shdr; \
|
| /llvm-project-15.0.7/llvm/lib/ObjectYAML/ |
| H A D | ELFEmitter.cpp | 243 void writeSectionContent(Elf_Shdr &SHeader, 246 void writeSectionContent(Elf_Shdr &SHeader, 249 void writeSectionContent(Elf_Shdr &SHeader, 252 void writeSectionContent(Elf_Shdr &SHeader, 255 void writeSectionContent(Elf_Shdr &SHeader, 258 void writeSectionContent(Elf_Shdr &SHeader, 261 void writeSectionContent(Elf_Shdr &SHeader, 264 void writeSectionContent(Elf_Shdr &SHeader, 267 void writeSectionContent(Elf_Shdr &SHeader, 270 void writeSectionContent(Elf_Shdr &SHeader, [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-readobj/ |
| H A D | ELFDumper.cpp | 277 const Elf_Shdr &Sec, const Elf_Shdr *SymTab); 284 const Elf_Shdr &, const Elf_Shdr *)> 319 const Elf_Shdr *FunctionSec, const Elf_Shdr &StackSizeSec, 331 llvm::MapVector<const Elf_Shdr *, const Elf_Shdr *> &SecToRelocMap); 2752 const Elf_Shdr *GotSec; 2756 const Elf_Shdr *PltSec; 3233 const Elf_Shdr &Sec, const Elf_Shdr *SymTab) { in printReloc() 5833 const Elf_Shdr &, const Elf_Shdr *)> in forEachRelocationDo() 6147 llvm::MapVector<const Elf_Shdr *, const Elf_Shdr *> &SecToRelocMap) { in getSectionAndRelocations() argument 6175 llvm::MapVector<const Elf_Shdr *, const Elf_Shdr *> StackSizeRelocMap; in printRelocatableStackSizes() [all …]
|
| H A D | ARMEHABIPrinter.h | 325 typedef typename ET::Shdr Elf_Shdr; typedef 332 const Elf_Shdr *Symtab; 346 const Elf_Shdr *FindExceptionTable(unsigned IndexTableIndex, 349 void PrintIndexTable(unsigned SectionIndex, const Elf_Shdr *IT) const; 350 void PrintExceptionTable(const Elf_Shdr &EHT, 356 StringRef FileName, const Elf_Shdr *Symtab) in PrinterContext() 406 for (const Elf_Shdr &Sec : unwrapOrError(FileName, ELF.sections())) { in FindExceptionTable() 413 const Elf_Shdr *SymTab = *SymTabOrErr; in FindExceptionTable() 447 void PrinterContext<ET>::PrintExceptionTable(const Elf_Shdr &EHT, in PrintExceptionTable() 520 const Elf_Shdr *IT) const { in PrintIndexTable() [all …]
|
| H A D | DwarfCFIEHPrinter.h | 32 using Elf_Shdr = typename ELFT::Shdr; variable 39 void printEHFrame(const Elf_Shdr *EHFrameShdr) const; 86 for (const Elf_Shdr &Shdr : *SectionsOrErr) { in printUnwindInformation() 104 if (const Elf_Shdr *EHFrameHdr = in printEHFrameHdr() 174 void PrinterContext<ELFT>::printEHFrame(const Elf_Shdr *EHFrameShdr) const { in printEHFrame()
|
| /llvm-project-15.0.7/lld/ELF/ |
| H A D | InputFiles.h | 231 StringRef getShtGroupSignature(ArrayRef<Elf_Shdr> sections, 232 const Elf_Shdr &sec); 256 const Elf_Shdr *addrsigSec = nullptr; 286 InputSectionBase *getRelocTarget(uint32_t idx, const Elf_Shdr &sec, 288 InputSectionBase *createInputSection(uint32_t idx, const Elf_Shdr &sec, 291 bool shouldMerge(const Elf_Shdr &sec, StringRef name);
|
| H A D | InputFiles.cpp | 321 template <typename Elf_Shdr> 322 static const Elf_Shdr *findSection(ArrayRef<Elf_Shdr> sections, uint32_t type) { in findSection() 323 for (const Elf_Shdr &sec : sections) in findSection() 330 using Elf_Shdr = typename ELFT::Shdr; in init() typedef 346 const Elf_Shdr *symtabSec = in init() 525 const Elf_Shdr &sec = objSections[i]; in initializeSections() 616 const Elf_Shdr &sec = objSections[i]; in initializeSections() 1325 using Elf_Shdr = typename ELFT::Shdr; in parse() typedef 1334 const Elf_Shdr *versymSec = nullptr; in parse() 1335 const Elf_Shdr *verdefSec = nullptr; in parse() [all …]
|
| H A D | Writer.cpp | 2616 fileSize = sectionHeaderOff + (outputSections.size() + 1) * sizeof(Elf_Shdr); in assignFileOffsets() 2814 auto *sHdrs = reinterpret_cast<Elf_Shdr *>(Out::bufferStart + eHdr->e_shoff); in writeHeader()
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | ELFObjectFile.cpp | 679 using Elf_Shdr = typename ELFT::Shdr; in readBBAddrMapImpl() typedef 682 for (const Elf_Shdr &Sec : Sections) { in readBBAddrMapImpl() 687 Expected<const Elf_Shdr *> TextSecOrErr = EF.getSection(Sec.sh_link); in readBBAddrMapImpl() 709 using Elf_Shdr = typename ELFT::Shdr; in readDynsymVersionsImpl() typedef 710 const Elf_Shdr *VerSec = nullptr; in readDynsymVersionsImpl() 711 const Elf_Shdr *VerNeedSec = nullptr; in readDynsymVersionsImpl() 712 const Elf_Shdr *VerDefSec = nullptr; in readDynsymVersionsImpl() 714 for (const Elf_Shdr &Sec : cantFail(EF.sections())) { in readDynsymVersionsImpl()
|
| H A D | ELF.cpp | 377 ELFFile<ELFT>::android_relas(const Elf_Shdr &Sec) const { in android_relas() 557 for (const Elf_Shdr &Sec : *SectionsOrError) { in dynamicEntries() 635 ELFFile<ELFT>::decodeBBAddrMap(const Elf_Shdr &Sec) const { in decodeBBAddrMap()
|
| /llvm-project-15.0.7/llvm/lib/InterfaceStub/ |
| H A D | ELFObjHandler.cpp | 75 using Elf_Shdr = typename ELFT::Shdr; typedef 77 Elf_Shdr Shdr; 172 using Elf_Shdr = typename ELFT::Shdr; typedef in llvm::ifs::__anon85c935ce0111::ELFStubBuilder 261 return ElfHeader.e_shoff + ElfHeader.e_shnum * sizeof(Elf_Shdr); in getSize() 330 return ElfHeader.e_shoff + Sec.Index * sizeof(Elf_Shdr); in shdrOffset() 356 using Elf_Shdr = typename ELFT::Shdr; typedef in llvm::ifs::__anon85c935ce0111::DynSym 390 const Elf_Shdr *findDynSymHdr() { in findDynSymHdr() 391 for (const Elf_Shdr &Sec : Shdrs) in findDynSymHdr() 418 const Elf_Shdr *DynSymHdr;
|
| /llvm-project-15.0.7/bolt/include/bolt/Rewrite/ |
| H A D | RewriteInstance.h | 308 std::vector<typename object::ELFObjectFile<ELFT>::Elf_Shdr> 323 const typename object::ELFObjectFile<ELFT>::Elf_Shdr &SymTabSection,
|
| /llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 70 Elf_Shdr &Shdr = *reinterpret_cast<Elf_Shdr *>(B); in writeShdr() 1501 Expected<const Elf_Shdr *> Shdr = ElfFile.getSection(SymTab->Index); in initSymbolTable() 1530 Expected<const Elf_Shdr *> ShndxSec = in initSymbolTable() 1722 for (const typename ELFFile<ELFT>::Elf_Shdr &Shdr : *Sections) { in readSectionHeaders() 1758 Expected<const Elf_Shdr *> Sec = ElfFile.getSection(0); in readSections() 1815 const typename ELFFile<ELFT>::Elf_Shdr *Shdr = in readSections() 1967 Ehdr.e_shentsize = sizeof(Elf_Shdr); in writeEhdr() 2006 Elf_Shdr &Shdr = in writeShdrs() 2441 return Obj.SHOff + ShdrCount * sizeof(Elf_Shdr); in totalSize() 2570 uint64_t Offset = Obj.SHOff + sizeof(Elf_Shdr); in finalize() [all …]
|
| H A D | ELFObject.h | 324 using Elf_Shdr = typename ELFT::Shdr; variable 951 using Elf_Shdr = typename ELFT::Shdr; variable 966 Expected<SectionBase &> makeSection(const Elf_Shdr &Shdr);
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/ |
| H A D | invalid-e_shoff.test | 2 ## such that e_shoff + e_shnum * sizeof(Elf_Shdr) is past the end of the file,
|
| /llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/ |
| H A D | output-limit.yaml | 8 ## 0x9FFEC0 = 0xA00000 (10 MB) - sizeof(Elf_Ehdr) - sizeof(Elf_Shdr) * 4.
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | ELFLinkGraphBuilder.h | 139 const typename ELFFile::Elf_Shdr *SymTabSec = nullptr; 146 DenseMap<const typename ELFFile::Elf_Shdr *,
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldELF.cpp | 108 Elf_Shdr *shdr = in updateSectionAddress() 109 const_cast<Elf_Shdr *>(reinterpret_cast<const Elf_Shdr *>(ShdrRef.p)); in updateSectionAddress() 143 typedef typename ELFT::Shdr Elf_Shdr; in createRTDyldELFObject() typedef 164 Elf_Shdr *shdr = const_cast<Elf_Shdr *>( in createRTDyldELFObject() 165 reinterpret_cast<const Elf_Shdr *>(ShdrRef.p)); in createRTDyldELFObject()
|
| /llvm-project-15.0.7/llvm/test/Object/ |
| H A D | invalid.test | 553 ## is greater than UINT64_MAX / sizeof(Elf_Shdr) == 288230376151711743. 572 ## See above, but now we test the UINT64_MAX / sizeof(Elf_Shdr) value. 591 ## Check the case when SHOff is too large. SHOff + sizeof(Elf_Shdr) overflows the uint64 type.
|
| /llvm-project-15.0.7/bolt/lib/Rewrite/ |
| H A D | RewriteInstance.cpp | 4211 std::vector<typename object::ELFObjectFile<ELFT>::Elf_Shdr> 4214 using ELFShdrTy = typename ELFObjectFile<ELFT>::Elf_Shdr; in getOutputSections() 4399 using ELFShdrTy = typename ELFObjectFile<ELFT>::Elf_Shdr; in patchELFSectionHeaderTable() 4449 const typename object::ELFObjectFile<ELFT>::Elf_Shdr &SymTabSection, in updateELFSymbolTable() 4803 using ELFShdrTy = typename ELFObjectFile<ELFT>::Elf_Shdr; in patchELFSymTabs()
|