| /freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | ELF.h | 278 std::vector<Elf_Shdr> FakeSections; 291 Expected<const T *> getEntry(const Elf_Shdr &Section, uint32_t Entry) const; 294 getVersionDefinitions(const Elf_Shdr &Sec) const; 296 const Elf_Shdr &Sec, 304 getStringTable(const Elf_Shdr &Section, 306 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const; 307 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section, 311 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const; 312 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section, 327 const Elf_Shdr *SymTab) const; [all …]
|
| H A D | ELFObjectFile.h | 277 SectionRef toSectionRef(const Elf_Shdr *Sec) const { in LLVM_ELF_IMPORT_TYPES_ELFT() 281 ELFSymbolRef toSymbolRef(const Elf_Shdr *SymTable, unsigned SymbolNum) const { in toSymbolRef() 289 const Elf_Shdr *DotDynSymSec, const Elf_Shdr *DotSymtabSec, 290 const Elf_Shdr *DotSymtabShndxSec); 297 const Elf_Shdr *DotDynSymSec = nullptr; // Dynamic symbol table section. 298 const Elf_Shdr *DotSymtabSec = nullptr; // Symbol table section. 299 const Elf_Shdr *DotSymtabShndxSec = nullptr; // SHT_SYMTAB_SHNDX section. 319 const Elf_Shdr *SymTab) const; 356 DataRefImpl toDRI(const Elf_Shdr *SymTable, unsigned SymbolNum) const { in toDRI() 374 (reinterpret_cast<uintptr_t>(SymTable) - SHT) / sizeof(Elf_Shdr); in toDRI() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | ELFEmitter.cpp | 225 bool initImplicitHeader(ContiguousBlobAccumulator &CBA, Elf_Shdr &Header, 227 void initSectionHeaders(std::vector<Elf_Shdr> &SHeaders, 229 void initSymtabSectionHeader(Elf_Shdr &SHeader, SymtabType STType, 232 void initStrtabSectionHeader(Elf_Shdr &SHeader, StringRef Name, 236 void initDWARFSectionHeader(Elf_Shdr &SHeader, StringRef Name, 240 std::vector<Elf_Shdr> &SHeaders); 248 void writeSectionContent(Elf_Shdr &SHeader, 251 void writeSectionContent(Elf_Shdr &SHeader, 254 void writeSectionContent(Elf_Shdr &SHeader, 257 void writeSectionContent(Elf_Shdr &SHeader, [all …]
|
| /freebsd/lib/libc/gen/ |
| H A D | nlist.c | 89 static int elf_scan_symtab(Elf_Shdr *, int, int, off_t, size_t, char *, size_t, 91 static void elf_sym_to_nlist(struct nlist *, Elf_Sym *, Elf_Shdr *, int); 133 Elf_Shdr *shdr; in __elf_fdnlist() 159 shdr = (Elf_Shdr *)base; in __elf_fdnlist() 236 elf_scan_symtab(Elf_Shdr *shdr, int shnum, int fd, off_t symoff, size_t symsize, in elf_scan_symtab() 277 elf_sym_to_nlist(struct nlist *nl, Elf_Sym *s, Elf_Shdr *shdr, int shnum) in elf_sym_to_nlist() 294 Elf_Shdr *sh = shdr + s->st_shndx; in elf_sym_to_nlist()
|
| /freebsd/usr.bin/gprof/ |
| H A D | elf.c | 61 const Elf_Shdr *shdrs; in elf_getnfile() 62 const Elf_Shdr *sh_symtab; in elf_getnfile() 63 const Elf_Shdr *sh_strtab; in elf_getnfile() 83 shdrs = (const Elf_Shdr *)(base + h.e_shoff); in elf_getnfile()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | ELFDumper.cpp | 239 std::string describe(const Elf_Shdr &Sec) const; 274 const Elf_Shdr *findSectionByName(StringRef Name) const; 279 virtual void printVersionSymbolSection(const Elf_Shdr *Sec) = 0; 280 virtual void printVersionDefinitionSection(const Elf_Shdr *Sec) = 0; 281 virtual void printVersionDependencySection(const Elf_Shdr *Sec) = 0; 284 printDependentLibsHelper(function_ref<void(const Elf_Shdr &)> OnSectionStart, 292 const Elf_Shdr &Sec, const Elf_Shdr *SymTab); 295 void printRelocationsHelper(const Elf_Shdr &Sec); 297 const Elf_Shdr &Sec, 299 const Elf_Shdr &, const Elf_Shdr *)> [all …]
|
| H A D | ARMEHABIPrinter.h | 325 typedef typename ET::Shdr Elf_Shdr; typedef 332 const Elf_Shdr *Symtab; 347 const Elf_Shdr *FindExceptionTable(unsigned IndexTableIndex, 350 void PrintIndexTable(unsigned SectionIndex, const Elf_Shdr *IT) const; 351 void PrintExceptionTable(const Elf_Shdr &EHT, 357 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 | 33 using Elf_Shdr = typename ELFT::Shdr; variable 40 void printEHFrame(const Elf_Shdr *EHFrameShdr) const; 87 for (const Elf_Shdr &Shdr : *SectionsOrErr) { in printUnwindInformation() 105 if (const Elf_Shdr *EHFrameHdr = in printEHFrameHdr() 174 void PrinterContext<ELFT>::printEHFrame(const Elf_Shdr *EHFrameShdr) const { in printEHFrame()
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | ELF.cpp | 443 ELFFile<ELFT>::crels(const Elf_Shdr &Sec) const { in crels() 452 ELFFile<ELFT>::android_relas(const Elf_Shdr &Sec) const { in android_relas() 635 for (const Elf_Shdr &Sec : *SectionsOrError) { in dynamicEntries() 737 const typename ELFFile<ELFT>::Elf_Shdr &Sec, in decodeBBAddrMapImpl() 738 const typename ELFFile<ELFT>::Elf_Shdr *RelaSec, in decodeBBAddrMapImpl() 973 ELFFile<ELFT>::decodeBBAddrMap(const Elf_Shdr &Sec, const Elf_Shdr *RelaSec, in decodeBBAddrMap() 987 std::function<Expected<bool>(const Elf_Shdr &)> IsMatch) const { in getSectionAndRelocations() 988 MapVector<const Elf_Shdr *, const Elf_Shdr *> SecToRelocMap; in getSectionAndRelocations() 990 for (const Elf_Shdr &Sec : cantFail(this->sections())) { in getSectionAndRelocations() 1005 Expected<const Elf_Shdr *> RelSecOrErr = this->getSection(Sec.sh_info); in getSectionAndRelocations() [all …]
|
| H A D | ELFObjectFile.cpp | 927 using Elf_Shdr = typename ELFT::Shdr; in readBBAddrMapImpl() typedef 934 auto IsMatch = [&](const Elf_Shdr &Sec) -> Expected<bool> { in readBBAddrMapImpl() 939 Expected<const Elf_Shdr *> TextSecOrErr = EF.getSection(Sec.sh_link); in readBBAddrMapImpl() 952 Expected<MapVector<const Elf_Shdr *, const Elf_Shdr *>> SectionRelocMapOrErr = in readBBAddrMapImpl() 983 using Elf_Shdr = typename ELFT::Shdr; in readDynsymVersionsImpl() typedef 984 const Elf_Shdr *VerSec = nullptr; in readDynsymVersionsImpl() 985 const Elf_Shdr *VerNeedSec = nullptr; in readDynsymVersionsImpl() 986 const Elf_Shdr *VerDefSec = nullptr; in readDynsymVersionsImpl() 988 for (const Elf_Shdr &Sec : cantFail(EF.sections())) { in readDynsymVersionsImpl()
|
| /freebsd/sys/compat/linux/ |
| H A D | linux_vdso.c | 101 const Elf_Shdr *shdr; in __elfN() 113 MPASS(ehdr->e_shentsize == sizeof(Elf_Shdr)); in __elfN() 117 shdr = (const Elf_Shdr *)(base + ehdr->e_shoff); in __elfN()
|
| /freebsd/contrib/llvm-project/lld/ELF/ |
| H A D | InputFiles.h | 266 StringRef getShtGroupSignature(ArrayRef<Elf_Shdr> sections, 267 const Elf_Shdr &sec); 273 const Elf_Shdr *addrsigSec = nullptr; 304 InputSectionBase *createInputSection(uint32_t idx, const Elf_Shdr &sec, 307 bool shouldMerge(const Elf_Shdr &sec, StringRef name);
|
| H A D | InputFiles.cpp | 474 template <typename Elf_Shdr> 475 static const Elf_Shdr *findSection(ArrayRef<Elf_Shdr> sections, uint32_t type) { in findSection() 476 for (const Elf_Shdr &sec : sections) in findSection() 502 using Elf_Shdr = typename ELFT::Shdr; in init() typedef 511 ArrayRef<Elf_Shdr> sections = CHECK2(obj.sections(), this); in init() 516 const Elf_Shdr *symtabSec = in init() 552 ArrayRef<Elf_Shdr> objSections = getELFShdrs<ELFT>(); in parse() 557 const Elf_Shdr &sec = objSections[i]; in parse() 667 StringRef ObjFile<ELFT>::getShtGroupSignature(ArrayRef<Elf_Shdr> sections, in getShtGroupSignature() 668 const Elf_Shdr &sec) { in getShtGroupSignature() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/InterfaceStub/ |
| H A D | ELFObjHandler.cpp | 76 using Elf_Shdr = typename ELFT::Shdr; typedef 78 Elf_Shdr Shdr; 173 using Elf_Shdr = typename ELFT::Shdr; typedef in llvm::ifs::__anon3dc69c9e0111::ELFStubBuilder 262 return ElfHeader.e_shoff + ElfHeader.e_shnum * sizeof(Elf_Shdr); in getSize() 331 return ElfHeader.e_shoff + Sec.Index * sizeof(Elf_Shdr); in shdrOffset() 357 using Elf_Shdr = typename ELFT::Shdr; typedef in llvm::ifs::__anon3dc69c9e0111::DynSym 391 const Elf_Shdr *findDynSymHdr() { in findDynSymHdr() 392 for (const Elf_Shdr &Sec : Shdrs) in findDynSymHdr() 419 const Elf_Shdr *DynSymHdr;
|
| /freebsd/stand/common/ |
| H A D | load_elf_obj.c | 50 Elf_Shdr *e_shdr; 141 hdr->e_shentsize != sizeof(Elf_Shdr)) { in __elfN() 222 Elf_Shdr *shdr, *cshdr, *lshdr; in __elfN() 466 Elf_Shdr *shdr; in __elfN() 504 Elf_Shdr *shdr; in __elfN()
|
| H A D | load_elf.c | 176 static int elf_section_header_convert(const Elf_Ehdr *ehdr, Elf_Shdr *shdr) in elf_section_header_convert() 209 static int elf_section_header_convert(const Elf_Ehdr *ehdr, Elf_Shdr *shdr) in elf_section_header_convert() 531 Elf_Shdr *shdr; 995 Elf_Shdr *sh_meta, *shdr = NULL; 996 Elf_Shdr *sh_data[2];
|
| /freebsd/sys/x86/xen/ |
| H A D | pv.c | 220 Elf_Shdr *shdr; in xen_pvh_parse_symtab() 232 shdr = (Elf_Shdr *)((uint8_t *)ehdr + ehdr->e_shoff); in xen_pvh_parse_symtab()
|
| /freebsd/usr.sbin/crunch/crunchide/ |
| H A D | exec_elf32.c | 91 Elf_Shdr *shdr; 226 Elf_Shdr *shdrp = NULL, *symtabshdr, *strtabshdr, *shstrtabshdr; in ELFNAMEEND() 227 Elf_Shdr shdrshdr; in ELFNAMEEND()
|
| /freebsd/sys/kern/ |
| H A D | kern_ctf.c | 48 Elf_Shdr *shdr = NULL; in link_elf_ctf_get() 127 hdr->e_shentsize != sizeof(Elf_Shdr)) { in link_elf_ctf_get()
|
| /freebsd/usr.bin/gcore/ |
| H A D | elfcore.c | 213 hdrsize += sizeof(Elf_Shdr); in elf_coredump() 471 Elf_Shdr *shdr; in elf_puthdr() 501 ehdr->e_shentsize = sizeof(Elf_Shdr); in elf_puthdr() 513 shdr = (Elf_Shdr *)((char *)hdr + ehdr->e_shoff); in elf_puthdr()
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 69 Elf_Shdr &Shdr = *reinterpret_cast<Elf_Shdr *>(B); in writeShdr() 1565 Expected<const Elf_Shdr *> Shdr = ElfFile.getSection(SymTab->Index); in initSymbolTable() 1594 Expected<const Elf_Shdr *> ShndxSec = in initSymbolTable() 1704 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) { in makeSection() 1791 for (const typename ELFFile<ELFT>::Elf_Shdr &Shdr : *Sections) { in readSectionHeaders() 1827 Expected<const Elf_Shdr *> Sec = ElfFile.getSection(0); in readSections() 1884 const typename ELFFile<ELFT>::Elf_Shdr *Shdr = in readSections() 2045 Ehdr.e_shentsize = sizeof(Elf_Shdr); in writeEhdr() 2084 Elf_Shdr &Shdr = in writeShdrs() 2085 *reinterpret_cast<Elf_Shdr *>(Buf->getBufferStart() + Obj.SHOff); in writeShdrs() [all …]
|
| /freebsd/sys/dev/ksyms/ |
| H A D | ksyms.c | 104 Elf_Shdr kh_shdr[SHDR_NUM]; 298 hdr->kh_ehdr.e_shentsize = sizeof(Elf_Shdr); in ksyms_snapshot()
|
| /freebsd/sys/powerpc/powerpc/ |
| H A D | machdep.c | 530 Elf_Shdr *shdr; in load_external_symtab() 585 shdr = (Elf_Shdr *)(kernelimg + ehdr->e_shoff); in load_external_symtab()
|
| /freebsd/sys/arm64/linux/ |
| H A D | linux_sysvec.c | 542 const Elf_Shdr *shdr; in linux_vdso_reloc() 552 shdr = (const Elf_Shdr *)(mapping + ehdr->e_shoff); in linux_vdso_reloc()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | ELFLinkGraphBuilder.h | 178 const typename ELFFile::Elf_Shdr *SymTabSec = nullptr; 186 DenseMap<const typename ELFFile::Elf_Shdr *,
|