Home
last modified time | relevance | path

Searched refs:Shdr (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Delf2yaml.cpp565 if ((Shdr->sh_type == ELF::SHT_SYMTAB || Shdr->sh_type == ELF::SHT_DYNSYM) && in dumpPlaceholderSection()
566 !Shdr->sh_size) in dumpPlaceholderSection()
733 if (!Shdr) in dumpSymbol()
783 S.Type = Shdr->sh_type; in dumpCommonSection()
784 if (Shdr->sh_flags) in dumpCommonSection()
786 if (Shdr->sh_addr) in dumpCommonSection()
826 if (!Shdr->sh_info) in dumpCommonRelocationSection()
1104 if (Shdr->sh_size != 0) in dumpRelocSection()
1176 if (Shdr->sh_info) in dumpContentSection()
1204 if (Shdr->sh_size) in dumpNoBitsSection()
[all …]
H A Dxcoff2yaml.cpp25 template <typename Shdr, typename Reloc>
26 Error dumpSections(ArrayRef<Shdr> Sections);
64 template <typename Shdr, typename Reloc>
65 Error XCOFFDumper::dumpSections(ArrayRef<Shdr> Sections) { in dumpSections()
67 for (const Shdr &S : Sections) { in dumpSections()
92 auto RelRefOrErr = Obj.relocations<Shdr, Reloc>(S); in dumpSections()
/llvm-project-15.0.7/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp75 using Elf_Shdr = typename ELFT::Shdr;
77 Elf_Shdr Shdr; member
289 StrTab.Shdr.sh_type = SHT_STRTAB; in fillStrTabShdr()
290 StrTab.Shdr.sh_flags = ShFlags; in fillStrTabShdr()
293 StrTab.Shdr.sh_info = 0; in fillStrTabShdr()
297 StrTab.Shdr.sh_entsize = 0; in fillStrTabShdr()
298 StrTab.Shdr.sh_link = 0; in fillStrTabShdr()
302 SymTab.Shdr.sh_type = ShType; in fillSymTabShdr()
303 SymTab.Shdr.sh_flags = SHF_ALLOC; in fillSymTabShdr()
309 SymTab.Shdr.sh_info = 1; in fillSymTabShdr()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DELFDump.cpp47 for (const typename ELFT::Shdr &Sec : *SectionsOrError) { in getDynamicStrTab()
101 const typename ELFT::Shdr *SymSec = in getRelocationValueString()
311 static void printSymbolVersionDefinition(const typename ELFT::Shdr &Shdr, in printSymbolVersionDefinition() argument
345 ArrayRef<typename ELFT::Shdr> Sections = in printSymbolVersionInfo()
347 for (const typename ELFT::Shdr &Shdr : Sections) { in printSymbolVersionInfo() local
348 if (Shdr.sh_type != ELF::SHT_GNU_verneed && in printSymbolVersionInfo()
349 Shdr.sh_type != ELF::SHT_GNU_verdef) in printSymbolVersionInfo()
353 unwrapOrError(Elf.getSectionContents(Shdr), FileName); in printSymbolVersionInfo()
354 const typename ELFT::Shdr *StrTabSec = in printSymbolVersionInfo()
355 unwrapOrError(Elf.getSection(Shdr.sh_link), FileName); in printSymbolVersionInfo()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DDwarfCFIEHPrinter.h32 using Elf_Shdr = typename ELFT::Shdr;
49 static const typename ELFT::Shdr *
56 for (const typename ELFT::Shdr &Shdr : *SectionsOrErr) in findSectionByAddress()
57 if (Shdr.sh_addr == Addr) in findSectionByAddress()
58 return &Shdr; in findSectionByAddress()
86 for (const Elf_Shdr &Shdr : *SectionsOrErr) { in printUnwindInformation()
87 Expected<StringRef> NameOrErr = Obj.getSectionName(Shdr); in printUnwindInformation()
91 printEHFrame(&Shdr); in printUnwindInformation()
H A DELFDumper.cpp415 const typename ELFT::Shdr *SymTab;
424 Expected<const typename ELFT::Shdr *> SymtabOrErr = in getLinkAsSymtab()
982 if (Shdr.sh_addr == Addr && Shdr.sh_size > 0) in findNotEmptySectionByAddress()
983 return &Shdr; in findNotEmptySectionByAddress()
2210 const typename ELFT::Shdr *
2215 return &Shdr; in findSectionByName()
5641 for (const typename ELFT::Shdr &S : Sections) { in printNotesHelper()
5807 OnSectionStart(Shdr); in printDependentLibsHelper()
5935 auto OnSectionStart = [&](const Elf_Shdr &Shdr) { in printDependentLibs() argument
5939 Current.Offset = Shdr.sh_offset; in printDependentLibs()
[all …]
H A DXCOFFDumper.cpp61 template <typename Shdr, typename RelTy>
62 void printRelocations(ArrayRef<Shdr> Sections);
176 template <typename Shdr, typename RelTy>
177 void XCOFFDumper::printRelocations(ArrayRef<Shdr> Sections) { in printRelocations()
180 for (const Shdr &Sec : Sections) { in printRelocations()
186 Expected<ArrayRef<RelTy>> ErrOrRelocations = Obj.relocations<Shdr, RelTy>(Sec); in printRelocations()
H A DARMEHABIPrinter.h325 typedef typename ET::Shdr Elf_Shdr;
395 const typename ET::Shdr *
437 static const typename ET::Shdr *
440 for (const typename ET::Shdr &Sec : unwrapOrError(FileName, Obj.sections())) in findSectionContainingAddress()
/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp72 Shdr.sh_type = Sec.Type; in writeShdr()
74 Shdr.sh_addr = Sec.Addr; in writeShdr()
76 Shdr.sh_size = Sec.Size; in writeShdr()
77 Shdr.sh_link = Sec.Link; in writeShdr()
1502 if (!Shdr) in initSymbolTable()
1749 (Shdr.sh_type == SHT_NOBITS) ? (size_t)0 : Shdr.sh_size); in readSectionHeaders()
2006 Elf_Shdr &Shdr = in writeShdrs() local
2008 Shdr.sh_name = 0; in writeShdrs()
2010 Shdr.sh_flags = 0; in writeShdrs()
2011 Shdr.sh_addr = 0; in writeShdrs()
[all …]
H A DELFObject.h324 using Elf_Shdr = typename ELFT::Shdr;
951 using Elf_Shdr = typename ELFT::Shdr;
966 Expected<SectionBase &> makeSection(const Elf_Shdr &Shdr);
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELF.h128 const typename ELFT::Shdr &Sec) { in getSecIndexForError()
142 const typename ELFT::Shdr &Sec) { in describe()
329 if (Shdr.sh_offset + Shdr.sh_size > getBufSize()) { in notes_begin()
335 return Elf_Note_Iterator(base() + Shdr.sh_offset, Shdr.sh_size, Err); in notes_begin()
362 iterator_range<Elf_Note_Iterator> notes(const Elf_Shdr &Shdr, in notes() argument
364 return make_range(notes_begin(Shdr, Err), notes_end()); in notes()
403 inline Expected<const typename ELFT::Shdr *>
446 Expected<const typename ELFT::Shdr *>
456 Expected<const typename ELFT::Shdr *>
1070 Expected<const typename ELFT::Shdr *>
[all …]
H A DELFTypes.h59 using Shdr = Elf_Shdr_Impl<ELFType<E, Is64>>; member
79 using ShdrRange = ArrayRef<Shdr>;
114 using Elf_Shdr = typename ELFT::Shdr; \
H A DXCOFFObjectFile.h615 template <typename Shdr, typename Reloc>
616 Expected<ArrayRef<Reloc>> relocations(const Shdr &Sec) const;
/llvm-project-15.0.7/lld/ELF/
H A DInputSection.cpp46 const typename ELFT::Shdr &hdr) { in getSectionContents()
91 const typename ELFT::Shdr &hdr, in InputSectionBase()
132 typename ELFT::Shdr shdr = in relsOrRelas()
306 InputSection::InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header, in InputSection()
1254 const typename ELFT::Shdr &header, in EhInputSection()
1388 const typename ELFT::Shdr &header, in MergeInputSection()
1426 template InputSection::InputSection(ObjFile<ELF32LE> &, const ELF32LE::Shdr &,
1455 const ELF32LE::Shdr &, StringRef);
1457 const ELF32BE::Shdr &, StringRef);
1459 const ELF64LE::Shdr &, StringRef);
[all …]
H A DOutputSections.cpp57 void OutputSection::writeHeaderTo(typename ELFT::Shdr *shdr) { in writeHeaderTo()
671 template void OutputSection::writeHeaderTo<ELF32LE>(ELF32LE::Shdr *Shdr);
672 template void OutputSection::writeHeaderTo<ELF32BE>(ELF32BE::Shdr *Shdr);
673 template void OutputSection::writeHeaderTo<ELF64LE>(ELF64LE::Shdr *Shdr);
674 template void OutputSection::writeHeaderTo<ELF64BE>(ELF64BE::Shdr *Shdr);
H A DInputSection.h108 InputSectionBase(ObjFile<ELFT> &file, const typename ELFT::Shdr &header,
267 MergeInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
326 EhInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
349 InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
H A DInputFiles.h187 reinterpret_cast<const typename ELFT::Shdr *>(elfShdrs), numELFShdrs); in getELFShdrs()
364 const typename ELFT::Shdr *sec);
H A DOutputSections.h43 template <typename ELFT> void writeHeaderTo(typename ELFT::Shdr *sHdr);
H A DDWARF.cpp30 ArrayRef<typename ELFT::Shdr> objSections = obj->template getELFShdrs<ELFT>(); in LLDDwarfObj()
H A DInputFiles.cpp330 using Elf_Shdr = typename ELFT::Shdr; in init()
1240 parseVerdefs(const uint8_t *base, const typename ELFT::Shdr *sec) { in parseVerdefs()
1265 const typename ELFT::Shdr *sec) { in parseVerneed()
1298 static uint64_t getAlignment(ArrayRef<typename ELFT::Shdr> sections, in getAlignment()
1325 using Elf_Shdr = typename ELFT::Shdr; in parse()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DDebugObjectManagerPlugin.cpp53 ELFDebugObjectSection(const typename ELFT::Shdr *Header) in ELFDebugObjectSection()
54 : Header(const_cast<typename ELFT::Shdr *>(Header)) {} in ELFDebugObjectSection()
62 typename ELFT::Shdr *Header;
91 if (HeaderPtr < Start || HeaderPtr + sizeof(typename ELFT::Shdr) > End) in validateInBounds()
262 using SectionHeader = typename ELFT::Shdr; in CreateArchType()
/llvm-project-15.0.7/bolt/runtime/
H A Dinstr.cpp676 Elf64_Shdr *Shdr = reinterpret_cast<Elf64_Shdr *>(BinContents + Hdr->e_shoff); in readDescriptions() local
683 BinContents + StringTblHeader->sh_offset + Shdr->sh_name); in readDescriptions()
685 Shdr = reinterpret_cast<Elf64_Shdr *>(BinContents + Hdr->e_shoff + in readDescriptions()
696 *reinterpret_cast<uint32_t *>(BinContents + Shdr->sh_offset + 20); in readDescriptions()
698 BinContents + Shdr->sh_offset + 24 + IndCallDescSize); in readDescriptions()
700 *reinterpret_cast<uint32_t *>(BinContents + Shdr->sh_offset + 28 + in readDescriptions()
703 BinContents + Shdr->sh_offset + 24); in readDescriptions()
705 BinContents + Shdr->sh_offset + 28 + IndCallDescSize); in readDescriptions()
706 Result.FuncDescriptions = BinContents + Shdr->sh_offset + 32 + in readDescriptions()
709 BinContents + Shdr->sh_offset + 32 + IndCallDescSize + in readDescriptions()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DELFLinkGraphBuilder.h117 Error forEachRelocation(const typename ELFT::Shdr &RelSect,
125 Error forEachRelocation(const typename ELFT::Shdr &RelSect, ClassT *Instance,
480 const typename ELFT::Shdr &RelSect, RelocHandlerFunction &&Func, in forEachRelocation()
/llvm-project-15.0.7/llvm/unittests/Object/
H A DELFObjectFileTest.cpp438 Expected<const typename ELF64LE::Shdr *> SymtabSecOrErr = Elf.getSection(1); in TEST()
521 Expected<const typename ELF64LE::Shdr *> BBAddrMapSecOrErr = in TEST()
682 Expected<const typename ELF64LE::Shdr *> BBAddrMapSecOrErr = in TEST()
698 Expected<const typename ELF64LE::Shdr *> BBAddrMapSecOrErr = in TEST()
/llvm-project-15.0.7/llvm/lib/Object/
H A DELFObjectFile.cpp679 using Elf_Shdr = typename ELFT::Shdr; in readBBAddrMapImpl()
709 using Elf_Shdr = typename ELFT::Shdr; in readDynsymVersionsImpl()

12