/freebsd/contrib/llvm-project/llvm/lib/InterfaceStub/ |
H A D | ELFObjHandler.cpp | 71 ElfHeader.e_shentsize = sizeof(typename ELFT::Shdr); in initELFHeader() 76 using Elf_Shdr = typename ELFT::Shdr; 78 Elf_Shdr Shdr; member 173 using Elf_Shdr = typename ELFT::Shdr; 267 DynSym.Content.write(Data + DynSym.Shdr.sh_offset); in write() 268 DynStr.Content.write(Data + DynStr.Shdr.sh_offset); in write() 269 DynTab.Content.write(Data + DynTab.Shdr.sh_offset); in write() 270 ShStrTab.Content.write(Data + ShStrTab.Shdr.sh_offset); in write() 290 StrTab.Shdr.sh_type = SHT_STRTAB; in fillStrTabShdr() 291 StrTab.Shdr.sh_flags = ShFlags; in fillStrTabShdr() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/ |
H A D | ELFDump.cpp | 41 void printSymbolVersionDependency(const typename ELFT::Shdr &Sec); 81 for (const typename ELFT::Shdr &Sec : *SectionsOrError) { in getDynamicStrTab() 139 const typename ELFT::Shdr *SymSec = in getRelocationValueString() 364 const typename ELFT::Shdr &Sec) { in printSymbolVersionDependency() 383 static void printSymbolVersionDefinition(const typename ELFT::Shdr &Shdr, in printSymbolVersionDefinition() argument 393 uint16_t VerdefIndexWidth = std::to_string(Shdr.sh_info).size(); in printSymbolVersionDefinition() 417 ArrayRef<typename ELFT::Shdr> Sections = in printSymbolVersion() 419 for (const typename ELFT::Shdr &Shdr : Sections) { in printSymbolVersion() local 420 if (Shdr.sh_type != ELF::SHT_GNU_verneed && in printSymbolVersion() 421 Shdr.sh_type != ELF::SHT_GNU_verdef) in printSymbolVersion() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | DwarfCFIEHPrinter.h | 32 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 D | ARMEHABIPrinter.h | 325 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 D | ELFDumper.cpp | 436 const typename ELFT::Shdr *SymTab; 443 const typename ELFT::Shdr &Sec, in getLinkAsSymtab() 445 Expected<const typename ELFT::Shdr *> SymtabOrErr = in getLinkAsSymtab() 686 void printGNUVersionSectionProlog(const typename ELFT::Shdr &Sec, 1058 for (const typename ELFO::Elf_Shdr &Shdr : cantFail(Obj.sections())) in findNotEmptySectionByAddress() local 1059 if (Shdr.sh_addr == Addr && Shdr.sh_size > 0) in findNotEmptySectionByAddress() 1060 return &Shdr; in findNotEmptySectionByAddress() 1769 std::pair<const typename ELFT::Phdr *, const typename ELFT::Shdr *> 2292 const typename ELFT::Shdr * 2294 for (const Elf_Shdr &Shdr : cantFail(Obj.sections())) { in findSectionByName() local [all …]
|
H A D | XCOFFDumper.cpp | 68 template <typename Shdr, typename RelTy> 69 void printRelocations(ArrayRef<Shdr> Sections); 487 template <typename Shdr, typename RelTy> 488 void XCOFFDumper::printRelocations(ArrayRef<Shdr> Sections) { in printRelocations() 491 for (const Shdr &Sec : Sections) { in printRelocations() 497 Expected<ArrayRef<RelTy>> ErrOrRelocations = Obj.relocations<Shdr, RelTy>(Sec); in printRelocations()
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
H A D | ELFObject.cpp | 72 Elf_Shdr &Shdr = *reinterpret_cast<Elf_Shdr *>(B); in writeShdr() local 73 Shdr.sh_name = Sec.NameIndex; in writeShdr() 74 Shdr.sh_type = Sec.Type; in writeShdr() 75 Shdr.sh_flags = Sec.Flags; in writeShdr() 76 Shdr.sh_addr = Sec.Addr; in writeShdr() 77 Shdr.sh_offset = Sec.Offset; in writeShdr() 78 Shdr.sh_size = Sec.Size; in writeShdr() 79 Shdr.sh_link = Sec.Link; in writeShdr() 80 Shdr.sh_info = Sec.Info; in writeShdr() 81 Shdr.sh_addralign = Sec.Align; in writeShdr() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | ELF.h | 131 const typename ELFT::Shdr &Sec) { in getSecIndexForError() 145 const typename ELFT::Shdr &Sec) { in describe() 170 const typename ELFT::Shdr &Sec) { in checkSectionOffsets() 188 const typename ELFT::Shdr &Sec) { in checkSectionVMA() 207 const typename ELFT::Shdr &Sec) { in isSectionInSegment() 303 Expected<StringRef> getLinkAsStrtab(const typename ELFT::Shdr &Sec) const; 429 Elf_Note_Iterator notes_begin(const Elf_Shdr &Shdr, Error &Err) const { in notes_begin() argument 430 assert(Shdr.sh_type == ELF::SHT_NOTE && "Shdr is not of type SHT_NOTE"); in notes_begin() 432 if (Shdr.sh_offset + Shdr.sh_size > getBufSize()) { in notes_begin() 434 createError("invalid offset (0x" + Twine::utohexstr(Shdr.sh_offset) + in notes_begin() [all …]
|
H A D | ELFTypes.h | 60 using Shdr = Elf_Shdr_Impl<ELFType<E, Is64>>; member 81 using ShdrRange = ArrayRef<Shdr>; 116 using Elf_Shdr = typename ELFT::Shdr; \
|
/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | InputSection.cpp | 46 const typename ELFT::Shdr &hdr) { in getSectionContents() 91 const typename ELFT::Shdr &hdr, in InputSectionBase() 142 typename ELFT::Shdr shdr = f->template getELFShdrs<ELFT>()[relSecIdx]; in relsOrRelas() 366 InputSection::InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header, in InputSection() 1275 const typename ELFT::Shdr &header, in EhInputSection() 1400 const typename ELFT::Shdr &header, in MergeInputSection() 1438 template InputSection::InputSection(ObjFile<ELF32LE> &, const ELF32LE::Shdr &, 1440 template InputSection::InputSection(ObjFile<ELF32BE> &, const ELF32BE::Shdr &, 1442 template InputSection::InputSection(ObjFile<ELF64LE> &, const ELF64LE::Shdr &, 1444 template InputSection::InputSection(ObjFile<ELF64BE> &, const ELF64BE::Shdr &, [all …]
|
H A D | OutputSections.cpp | 64 void OutputSection::writeHeaderTo(typename ELFT::Shdr *shdr) { in writeHeaderTo() 916 template void OutputSection::writeHeaderTo<ELF32LE>(ELF32LE::Shdr *Shdr); 917 template void OutputSection::writeHeaderTo<ELF32BE>(ELF32BE::Shdr *Shdr); 918 template void OutputSection::writeHeaderTo<ELF64LE>(ELF64LE::Shdr *Shdr); 919 template void OutputSection::writeHeaderTo<ELF64BE>(ELF64BE::Shdr *Shdr);
|
H A D | InputSection.h | 143 InputSectionBase(ObjFile<ELFT> &file, const typename ELFT::Shdr &header, 318 MergeInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header, 379 EhInputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header, 402 InputSection(ObjFile<ELFT> &f, const typename ELFT::Shdr &header,
|
H A D | InputFiles.h | 210 reinterpret_cast<const typename ELFT::Shdr *>(elfShdrs), numELFShdrs); in getELFShdrs() 375 const typename ELFT::Shdr *sec);
|
H A D | OutputSections.h | 45 template <typename ELFT> void writeHeaderTo(typename ELFT::Shdr *sHdr);
|
H A D | DWARF.cpp | 30 ArrayRef<typename ELFT::Shdr> objSections = obj->template getELFShdrs<ELFT>(); in LLDDwarfObj()
|
H A D | InputFiles.cpp | 549 using Elf_Shdr = typename ELFT::Shdr; in init() 1371 parseVerdefs(const uint8_t *base, const typename ELFT::Shdr *sec) { in parseVerdefs() 1396 const typename ELFT::Shdr *sec) { in parseVerneed() 1429 static uint64_t getAlignment(ArrayRef<typename ELFT::Shdr> sections, in getAlignment() 1456 using Elf_Shdr = typename ELFT::Shdr; in parse()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | ELFLinkGraphBuilder.h | 126 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 D | ELF_loongarch.cpp | 92 const typename ELFT::Shdr &FixupSect, in addSingleRelocation()
|
H A D | ELF_i386.cpp | 163 const typename ELFT::Shdr &FixupSection, in addSingleRelocation()
|
H A D | ELF_x86_64.cpp | 127 const typename ELFT::Shdr &FixupSection, in addSingleRelocation()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | DebugObjectManagerPlugin.cpp | 53 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/sys/sys/ |
H A D | elf_generic.h | 67 __ElfType(Shdr);
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | libelf_align.c | 76 [ELF_T_SHDR] = MALIGN(Shdr),
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | elf.h | 41 __sElfN(Shdr);
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | ELFObjectFile.cpp | 882 using Elf_Shdr = typename ELFT::Shdr; in readBBAddrMapImpl() 939 using Elf_Shdr = typename ELFT::Shdr; in readDynsymVersionsImpl()
|