Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp76 using Elf_Shdr = typename ELFT::Shdr;
78 Elf_Shdr Shdr; member
290 StrTab.Shdr.sh_type = SHT_STRTAB; in fillStrTabShdr()
291 StrTab.Shdr.sh_flags = ShFlags; in fillStrTabShdr()
294 StrTab.Shdr.sh_info = 0; in fillStrTabShdr()
298 StrTab.Shdr.sh_entsize = 0; in fillStrTabShdr()
299 StrTab.Shdr.sh_link = 0; in fillStrTabShdr()
303 SymTab.Shdr.sh_type = ShType; in fillSymTabShdr()
304 SymTab.Shdr.sh_flags = SHF_ALLOC; in fillSymTabShdr()
310 SymTab.Shdr.sh_info = 1; in fillSymTabShdr()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DELFDump.cpp81 for (const typename ELFT::Shdr &Sec : *SectionsOrError) { in getDynamicStrTab()
135 const typename ELFT::Shdr *SymSec = in getRelocationValueString()
359 const typename ELFT::Shdr &Sec) { in printSymbolVersionDependency()
378 static void printSymbolVersionDefinition(const typename ELFT::Shdr &Shdr, in printSymbolVersionDefinition() argument
412 ArrayRef<typename ELFT::Shdr> Sections = in printSymbolVersion()
414 for (const typename ELFT::Shdr &Shdr : Sections) { in printSymbolVersion() local
415 if (Shdr.sh_type != ELF::SHT_GNU_verneed && in printSymbolVersion()
416 Shdr.sh_type != ELF::SHT_GNU_verdef) in printSymbolVersion()
421 const typename ELFT::Shdr *StrTabSec = in printSymbolVersion()
425 if (Shdr.sh_type == ELF::SHT_GNU_verneed) in printSymbolVersion()
[all …]
/freebsd-14.2/contrib/llvm-project/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 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()
H A DELFDumper.cpp433 const typename ELFT::Shdr *SymTab;
442 Expected<const typename ELFT::Shdr *> SymtabOrErr = in getLinkAsSymtab()
1044 if (Shdr.sh_addr == Addr && Shdr.sh_size > 0) in findNotEmptySectionByAddress()
1045 return &Shdr; in findNotEmptySectionByAddress()
2320 const typename ELFT::Shdr *
2325 return &Shdr; in findSectionByName()
5960 for (const typename ELFT::Shdr &S : Sections) { in processNotesHelper()
6256 OnSectionStart(Shdr); in printDependentLibsHelper()
6394 Current.Offset = Shdr.sh_offset; in printDependentLibs()
7547 using Elf_Shdr = typename ELFT::Shdr; in printBBAddrMaps()
[all …]
H A DXCOFFDumper.cpp67 template <typename Shdr, typename RelTy>
68 void printRelocations(ArrayRef<Shdr> Sections);
481 template <typename Shdr, typename RelTy>
482 void XCOFFDumper::printRelocations(ArrayRef<Shdr> Sections) { in printRelocations()
485 for (const Shdr &Sec : Sections) { in printRelocations()
491 Expected<ArrayRef<RelTy>> ErrOrRelocations = Obj.relocations<Shdr, RelTy>(Sec); in printRelocations()
/freebsd-14.2/contrib/llvm-project/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()
1538 if (!Shdr) in initSymbolTable()
1789 (Shdr.sh_type == SHT_NOBITS) ? (size_t)0 : Shdr.sh_size); in readSectionHeaders()
2048 Elf_Shdr &Shdr = in writeShdrs() local
2050 Shdr.sh_name = 0; in writeShdrs()
2052 Shdr.sh_flags = 0; in writeShdrs()
2053 Shdr.sh_addr = 0; in writeShdrs()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Object/
H A DELF.h168 const typename ELFT::Shdr &Sec) { in checkSectionOffsets()
186 const typename ELFT::Shdr &Sec) { in checkSectionVMA()
205 const typename ELFT::Shdr &Sec) { in isSectionInSegment()
384 if (Shdr.sh_offset + Shdr.sh_size > getBufSize()) { in notes_begin()
391 if (Shdr.sh_addralign != 0 && Shdr.sh_addralign != 1 && in notes_begin()
392 Shdr.sh_addralign != 4 && Shdr.sh_addralign != 8) { in notes_begin()
397 return Elf_Note_Iterator(base() + Shdr.sh_offset, Shdr.sh_size, in notes_begin()
484 inline Expected<const typename ELFT::Shdr *>
527 Expected<const typename ELFT::Shdr *>
537 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; \
/freebsd-14.2/contrib/llvm-project/lld/ELF/
H A DInputSection.cpp46 const typename ELFT::Shdr &hdr) { in getSectionContents()
91 const typename ELFT::Shdr &hdr, in InputSectionBase()
140 typename ELFT::Shdr shdr = in relsOrRelas()
322 InputSection::InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header, in InputSection()
1226 const typename ELFT::Shdr &header, in EhInputSection()
1351 const typename ELFT::Shdr &header, in MergeInputSection()
1389 template InputSection::InputSection(ObjFile<ELF32LE> &, const ELF32LE::Shdr &,
1418 const ELF32LE::Shdr &, StringRef);
1420 const ELF32BE::Shdr &, StringRef);
1422 const ELF64LE::Shdr &, StringRef);
[all …]
H A DOutputSections.cpp63 void OutputSection::writeHeaderTo(typename ELFT::Shdr *shdr) { in writeHeaderTo()
774 template void OutputSection::writeHeaderTo<ELF32LE>(ELF32LE::Shdr *Shdr);
775 template void OutputSection::writeHeaderTo<ELF32BE>(ELF32BE::Shdr *Shdr);
776 template void OutputSection::writeHeaderTo<ELF64LE>(ELF64LE::Shdr *Shdr);
777 template void OutputSection::writeHeaderTo<ELF64BE>(ELF64BE::Shdr *Shdr);
H A DInputSection.h127 InputSectionBase(ObjFile<ELFT> &file, const typename ELFT::Shdr &header,
295 MergeInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
356 EhInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
379 InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
H A DInputFiles.h197 reinterpret_cast<const typename ELFT::Shdr *>(elfShdrs), numELFShdrs); in getELFShdrs()
373 const typename ELFT::Shdr *sec);
H A DOutputSections.h44 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.cpp526 using Elf_Shdr = typename ELFT::Shdr; in init()
1313 parseVerdefs(const uint8_t *base, const typename ELFT::Shdr *sec) { in parseVerdefs()
1338 const typename ELFT::Shdr *sec) { in parseVerneed()
1371 static uint64_t getAlignment(ArrayRef<typename ELFT::Shdr> sections, in getAlignment()
1398 using Elf_Shdr = typename ELFT::Shdr; in parse()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELFLinkGraphBuilder.h126 virtual bool excludeSection(const typename ELFT::Shdr &Sect) const { in excludeSection()
136 Error forEachRelaRelocation(const typename ELFT::Shdr &RelSect,
145 Error forEachRelRelocation(const typename ELFT::Shdr &RelSect,
152 Error forEachRelaRelocation(const typename ELFT::Shdr &RelSect, in forEachRelaRelocation()
165 Error forEachRelRelocation(const typename ELFT::Shdr &RelSect, in forEachRelRelocation()
596 const typename ELFT::Shdr &RelSect, RelocHandlerFunction &&Func) { in forEachRelaRelocation()
646 const typename ELFT::Shdr &RelSect, RelocHandlerFunction &&Func) { in forEachRelRelocation()
H A DELF_loongarch.cpp92 const typename ELFT::Shdr &FixupSect, in addSingleRelocation()
H A DELF_i386.cpp163 const typename ELFT::Shdr &FixupSection, in addSingleRelocation()
/freebsd-14.2/contrib/llvm-project/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;
78 if (HeaderPtr < Start || HeaderPtr + sizeof(typename ELFT::Shdr) > End) in validateInBounds()
256 using SectionHeader = typename ELFT::Shdr; in CreateArchType()
/freebsd-14.2/sys/sys/
H A Delf_generic.h67 __ElfType(Shdr);
/freebsd-14.2/contrib/elftoolchain/libelf/
H A Dlibelf_align.c76 [ELF_T_SHDR] = MALIGN(Shdr),
/freebsd-14.2/sys/cddl/compat/opensolaris/sys/
H A Delf.h41 __sElfN(Shdr);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Object/
H A DELFObjectFile.cpp790 using Elf_Shdr = typename ELFT::Shdr; in readBBAddrMapImpl()
844 using Elf_Shdr = typename ELFT::Shdr; in readDynsymVersionsImpl()
H A DELF.cpp838 MapVector<const typename ELFT::Shdr *, const typename ELFT::Shdr *>>

12