| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | ELF.h | 229 std::vector<Elf_Shdr> FakeSections; 247 const Elf_Shdr &Sec, 255 getStringTable(const Elf_Shdr &Section, 281 loadVersionMap(const Elf_Shdr *VerNeedSec, const Elf_Shdr *VerDefSec) const; 447 getSectionName(const Elf_Shdr &Section, 464 decodeBBAddrMap(const Elf_Shdr &Sec, const Elf_Shdr *RelaSec = nullptr, 471 Expected<MapVector<const Elf_Shdr *, const Elf_Shdr *>> 861 Elf_Shdr FakeShdr = {}; in createFakeSections() 881 return ArrayRef<Elf_Shdr>(); in sections() 900 const Elf_Shdr *First = in sections() [all …]
|
| H A D | ELFObjectFile.h | 271 const Elf_Shdr *DotDynSymSec, const Elf_Shdr *DotSymtabSec, 829 const Elf_Shdr *ESec = *ESecOrErr; in getSymbolSection() 853 const Elf_Shdr *ESec = getSection(Sec); in moveSectionNext() 886 const Elf_Shdr *EShdr = getSection(Sec); in getSectionContents() 913 const Elf_Shdr *EShdr = getSection(Sec); in isSectionData() 921 const Elf_Shdr *EShdr = getSection(Sec); in isSectionBSS() 969 const Elf_Shdr *EShdr = getSection(Sec); in isBerkeleyData() 1003 const Elf_Shdr *S = reinterpret_cast<const Elf_Shdr *>(Sec.p); in section_rel_end() 1023 const Elf_Shdr *EShdr = getSection(Sec); in getRelocatedSection() 1159 const Elf_Shdr *SymTab = DotSymtabSec; in symbol_end() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | ELFEmitter.cpp | 245 void writeSectionContent(Elf_Shdr &SHeader, 248 void writeSectionContent(Elf_Shdr &SHeader, 251 void writeSectionContent(Elf_Shdr &SHeader, 254 void writeSectionContent(Elf_Shdr &SHeader, 257 void writeSectionContent(Elf_Shdr &SHeader, 260 void writeSectionContent(Elf_Shdr &SHeader, 263 void writeSectionContent(Elf_Shdr &SHeader, 266 void writeSectionContent(Elf_Shdr &SHeader, 269 void writeSectionContent(Elf_Shdr &SHeader, 272 void writeSectionContent(Elf_Shdr &SHeader, [all …]
|
| /freebsd-14.2/usr.bin/gprof/ |
| H A D | elf.c | 65 const Elf_Shdr *shdrs; in elf_getnfile() 66 const Elf_Shdr *sh_symtab; in elf_getnfile() 67 const Elf_Shdr *sh_strtab; in elf_getnfile() 87 shdrs = (const Elf_Shdr *)(base + h.e_shoff); in elf_getnfile()
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | ELFDumper.cpp | 289 const Elf_Shdr &Sec, const Elf_Shdr *SymTab); 296 const Elf_Shdr &, const Elf_Shdr *)> 343 const Elf_Shdr *FunctionSec, const Elf_Shdr &StackSizeSec, 2996 const Elf_Shdr *GotSec; 3000 const Elf_Shdr *PltSec; 3477 const Elf_Shdr &Sec, const Elf_Shdr *SymTab) { in printReloc() 6282 const Elf_Shdr &, const Elf_Shdr *)> in forEachRelocationDo() 6294 const Elf_Shdr *SymTab; in forEachRelocationDo() 6614 Expected<MapVector<const Elf_Shdr *, const Elf_Shdr *>> in printRelocatableStackSizes() 7500 Expected<MapVector<const Elf_Shdr *, const Elf_Shdr *>> SecToRelocMapOrErr = in printCGProfile() [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 | 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() 173 void PrinterContext<ELFT>::printEHFrame(const Elf_Shdr *EHFrameShdr) const { in printEHFrame()
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | nlist.c | 90 static void elf_sym_to_nlist(struct nlist *, Elf_Sym *, Elf_Shdr *, int); 135 Elf_Shdr *shdr = NULL; in __elf_fdnlist() 161 shdr = (Elf_Shdr *)base; in __elf_fdnlist() 263 elf_sym_to_nlist(struct nlist *nl, Elf_Sym *s, Elf_Shdr *shdr, int shnum) in elf_sym_to_nlist() 280 Elf_Shdr *sh = shdr + s->st_shndx; in elf_sym_to_nlist()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Object/ |
| H A D | ELF.cpp | 394 ELFFile<ELFT>::android_relas(const Elf_Shdr &Sec) const { in android_relas() 573 for (const Elf_Shdr &Sec : *SectionsOrError) { in dynamicEntries() 675 const typename ELFFile<ELFT>::Elf_Shdr &Sec, in decodeBBAddrMapImpl() 676 const typename ELFFile<ELFT>::Elf_Shdr *RelaSec, in decodeBBAddrMapImpl() 826 ELFFile<ELFT>::decodeBBAddrMap(const Elf_Shdr &Sec, const Elf_Shdr *RelaSec, in decodeBBAddrMap() 840 std::function<Expected<bool>(const Elf_Shdr &)> IsMatch) const { in getSectionAndRelocations() 841 MapVector<const Elf_Shdr *, const Elf_Shdr *> SecToRelocMap; in getSectionAndRelocations() 843 for (const Elf_Shdr &Sec : cantFail(this->sections())) { in getSectionAndRelocations() 850 if (SecToRelocMap.insert(std::make_pair(&Sec, (const Elf_Shdr *)nullptr)) in getSectionAndRelocations() 858 Expected<const Elf_Shdr *> RelSecOrErr = this->getSection(Sec.sh_info); in getSectionAndRelocations() [all …]
|
| H A D | ELFObjectFile.cpp | 790 using Elf_Shdr = typename ELFT::Shdr; in readBBAddrMapImpl() typedef 797 auto IsMatch = [&](const Elf_Shdr &Sec) -> Expected<bool> { in readBBAddrMapImpl() 803 Expected<const Elf_Shdr *> TextSecOrErr = EF.getSection(Sec.sh_link); in readBBAddrMapImpl() 813 Expected<MapVector<const Elf_Shdr *, const Elf_Shdr *>> SectionRelocMapOrErr = in readBBAddrMapImpl() 844 using Elf_Shdr = typename ELFT::Shdr; in readDynsymVersionsImpl() typedef 845 const Elf_Shdr *VerSec = nullptr; in readDynsymVersionsImpl() 846 const Elf_Shdr *VerNeedSec = nullptr; in readDynsymVersionsImpl() 847 const Elf_Shdr *VerDefSec = nullptr; in readDynsymVersionsImpl() 849 for (const Elf_Shdr &Sec : cantFail(EF.sections())) { in readDynsymVersionsImpl()
|
| /freebsd-14.2/contrib/llvm-project/lld/ELF/ |
| H A D | InputFiles.h | 242 StringRef getShtGroupSignature(ArrayRef<Elf_Shdr> sections, 243 const Elf_Shdr &sec); 269 const Elf_Shdr *addrsigSec = nullptr; 300 InputSectionBase *getRelocTarget(uint32_t idx, const Elf_Shdr &sec, 302 InputSectionBase *createInputSection(uint32_t idx, const Elf_Shdr &sec, 305 bool shouldMerge(const Elf_Shdr &sec, StringRef name);
|
| H A D | InputFiles.cpp | 498 template <typename Elf_Shdr> 499 static const Elf_Shdr *findSection(ArrayRef<Elf_Shdr> sections, uint32_t type) { in findSection() 500 for (const Elf_Shdr &sec : sections) in findSection() 526 using Elf_Shdr = typename ELFT::Shdr; in init() typedef 540 const Elf_Shdr *symtabSec = in init() 581 const Elf_Shdr &sec = objSections[i]; in parse() 1398 using Elf_Shdr = typename ELFT::Shdr; in parse() typedef 1407 const Elf_Shdr *versymSec = nullptr; in parse() 1408 const Elf_Shdr *verdefSec = nullptr; in parse() 1409 const Elf_Shdr *verneedSec = nullptr; in parse() [all …]
|
| /freebsd-14.2/sys/compat/linux/ |
| H A D | linux_vdso.c | 104 const Elf_Shdr *shdr; in __elfN() 116 MPASS(ehdr->e_shentsize == sizeof(Elf_Shdr)); in __elfN() 120 shdr = (const Elf_Shdr *)(base + ehdr->e_shoff); in __elfN()
|
| /freebsd-14.2/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::__anonbf5849940111::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::__anonbf5849940111::DynSym 391 const Elf_Shdr *findDynSymHdr() { in findDynSymHdr() 392 for (const Elf_Shdr &Sec : Shdrs) in findDynSymHdr() 419 const Elf_Shdr *DynSymHdr;
|
| /freebsd-14.2/stand/common/ |
| H A D | load_elf_obj.c | 52 Elf_Shdr *e_shdr; 145 hdr->e_shentsize != sizeof(Elf_Shdr)) { in __elfN() 229 Elf_Shdr *shdr, *cshdr, *lshdr; in __elfN() 473 Elf_Shdr *shdr; in __elfN() 511 Elf_Shdr *shdr; in __elfN()
|
| H A D | load_elf.c | 181 static int elf_section_header_convert(const Elf_Ehdr *ehdr, Elf_Shdr *shdr) in elf_section_header_convert() 214 static int elf_section_header_convert(const Elf_Ehdr *ehdr, Elf_Shdr *shdr) in elf_section_header_convert() 537 Elf_Shdr *shdr; 995 Elf_Shdr *sh_meta, *shdr = NULL; 996 Elf_Shdr *sh_data[2];
|
| /freebsd-14.2/sys/kern/ |
| H A D | kern_ctf.c | 44 Elf_Shdr *shdr = NULL; in link_elf_ctf_get() 120 hdr->e_shentsize != sizeof(Elf_Shdr)) { in link_elf_ctf_get()
|
| H A D | link_elf.c | 827 link_elf_locate_exidx(linker_file_t lf, Elf_Shdr *shdr, int nhdr) in link_elf_locate_exidx() 850 Elf_Shdr *shdr; in link_elf_locate_exidx_preload() 856 shdr = (Elf_Shdr *)modinfo; in link_elf_locate_exidx_preload() 857 nhdr = modinfo[-1] / sizeof(Elf_Shdr); in link_elf_locate_exidx_preload() 981 Elf_Shdr *shdr; in link_elf_load_file()
|
| /freebsd-14.2/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-14.2/usr.bin/gcore/ |
| H A D | elfcore.c | 212 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-14.2/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 70 Elf_Shdr &Shdr = *reinterpret_cast<Elf_Shdr *>(B); in writeShdr() 1537 Expected<const Elf_Shdr *> Shdr = ElfFile.getSection(SymTab->Index); in initSymbolTable() 1566 Expected<const Elf_Shdr *> ShndxSec = in initSymbolTable() 1762 for (const typename ELFFile<ELFT>::Elf_Shdr &Shdr : *Sections) { in readSectionHeaders() 1798 Expected<const Elf_Shdr *> Sec = ElfFile.getSection(0); in readSections() 1855 const typename ELFFile<ELFT>::Elf_Shdr *Shdr = in readSections() 2009 Ehdr.e_shentsize = sizeof(Elf_Shdr); in writeEhdr() 2048 Elf_Shdr &Shdr = in writeShdrs() 2483 return Obj.SHOff + ShdrCount * sizeof(Elf_Shdr); in totalSize() 2618 uint64_t Offset = Obj.SHOff + sizeof(Elf_Shdr); in finalize() [all …]
|
| /freebsd-14.2/sys/x86/xen/ |
| H A D | pv.c | 304 Elf_Shdr *shdr; in xen_pvh_parse_symtab() 316 shdr = (Elf_Shdr *)((uint8_t *)ehdr + ehdr->e_shoff); in xen_pvh_parse_symtab()
|
| /freebsd-14.2/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-14.2/sys/powerpc/powerpc/ |
| H A D | machdep.c | 531 Elf_Shdr *shdr; in load_external_symtab() 586 shdr = (Elf_Shdr *)(kernelimg + ehdr->e_shoff); in load_external_symtab()
|
| /freebsd-14.2/sys/arm64/linux/ |
| H A D | linux_sysvec.c | 538 const Elf_Shdr *shdr; in linux_vdso_reloc() 548 shdr = (const Elf_Shdr *)(mapping + ehdr->e_shoff); in linux_vdso_reloc()
|