Home
last modified time | relevance | path

Searched refs:Elf_Shdr (Results 1 – 25 of 33) sorted by relevance

12

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Object/
DELF.h199 Expected<const T *> getEntry(const Elf_Shdr &Section, uint32_t Entry) const;
202 getVersionDefinitions(const Elf_Shdr &Sec) const;
204 const Elf_Shdr &Sec,
212 getStringTable(const Elf_Shdr &Section,
214 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
215 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section,
219 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const;
220 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section,
235 const Elf_Shdr *SymTab) const;
238 loadVersionMap(const Elf_Shdr *VerNeedSec, const Elf_Shdr *VerDefSec) const;
[all …]
DELFObjectFile.h236 SectionRef toSectionRef(const Elf_Shdr *Sec) const { in LLVM_ELF_IMPORT_TYPES_ELFT()
240 ELFSymbolRef toSymbolRef(const Elf_Shdr *SymTable, unsigned SymbolNum) const { in toSymbolRef()
248 const Elf_Shdr *DotDynSymSec, const Elf_Shdr *DotSymtabSec,
249 const Elf_Shdr *DotSymtabShndxSec);
256 const Elf_Shdr *DotDynSymSec = nullptr; // Dynamic symbol table section.
257 const Elf_Shdr *DotSymtabSec = nullptr; // Symbol table section.
258 const Elf_Shdr *DotSymtabShndxSec = nullptr; // SHT_SYMTAB_SHNDX section.
274 const Elf_Shdr *SymTab) const;
311 DataRefImpl toDRI(const Elf_Shdr *SymTable, unsigned SymbolNum) const { in toDRI()
329 (reinterpret_cast<uintptr_t>(SymTable) - SHT) / sizeof(Elf_Shdr); in toDRI()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/ObjectYAML/
DELFEmitter.cpp220 bool initImplicitHeader(ContiguousBlobAccumulator &CBA, Elf_Shdr &Header,
222 void initSectionHeaders(std::vector<Elf_Shdr> &SHeaders,
224 void initSymtabSectionHeader(Elf_Shdr &SHeader, SymtabType STType,
227 void initStrtabSectionHeader(Elf_Shdr &SHeader, StringRef Name,
231 void initDWARFSectionHeader(Elf_Shdr &SHeader, StringRef Name,
235 std::vector<Elf_Shdr> &SHeaders);
243 void writeSectionContent(Elf_Shdr &SHeader,
246 void writeSectionContent(Elf_Shdr &SHeader,
249 void writeSectionContent(Elf_Shdr &SHeader,
252 void writeSectionContent(Elf_Shdr &SHeader,
[all …]
/freebsd-12-stable/sys/compat/linux/
Dlinux_vdso.c106 Elf_Shdr *shdr; in __elfN()
116 ehdr->e_shentsize != sizeof(Elf_Shdr)) in __elfN()
122 shdr = (Elf_Shdr *) ((caddr_t)ehdr + ehdr->e_shoff); in __elfN()
147 Elf_Shdr *shdr; in __elfN()
196 shdr = (Elf_Shdr *)((caddr_t)ehdr + ehdr->e_shoff); in __elfN()
226 Elf_Shdr *shdr; in __elfN()
229 shdr = (Elf_Shdr *) ((caddr_t)ehdr + ehdr->e_shoff); in __elfN()
/freebsd-12-stable/contrib/llvm-project/llvm/tools/llvm-readobj/
DELFDumper.cpp221 std::string describe(const Elf_Shdr &Sec) const;
253 const Elf_Shdr *findSectionByName(StringRef Name) const;
258 virtual void printVersionSymbolSection(const Elf_Shdr *Sec) = 0;
259 virtual void printVersionDefinitionSection(const Elf_Shdr *Sec) = 0;
260 virtual void printVersionDependencySection(const Elf_Shdr *Sec) = 0;
263 printDependentLibsHelper(function_ref<void(const Elf_Shdr &)> OnSectionStart,
272 const Elf_Shdr &Sec, const Elf_Shdr *SymTab);
275 void printRelocationsHelper(const Elf_Shdr &Sec);
277 const Elf_Shdr &Sec, bool RawRelr,
279 const Elf_Shdr &, const Elf_Shdr *)>
[all …]
DARMEHABIPrinter.h325 typedef typename ET::Shdr Elf_Shdr; typedef
332 const Elf_Shdr *Symtab;
346 const Elf_Shdr *FindExceptionTable(unsigned IndexTableIndex,
349 void PrintIndexTable(unsigned SectionIndex, const Elf_Shdr *IT) const;
350 void PrintExceptionTable(const Elf_Shdr &EHT,
356 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 …]
DDwarfCFIEHPrinter.h32 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()
174 void PrinterContext<ELFT>::printEHFrame(const Elf_Shdr *EHFrameShdr) const { in printEHFrame()
/freebsd-12-stable/usr.bin/gprof/
Delf.c67 const Elf_Shdr *shdrs; in elf_getnfile()
68 const Elf_Shdr *sh_symtab; in elf_getnfile()
69 const Elf_Shdr *sh_strtab; in elf_getnfile()
89 shdrs = (const Elf_Shdr *)(base + h.e_shoff); in elf_getnfile()
/freebsd-12-stable/contrib/llvm-project/lld/ELF/
DInputFiles.h210 StringRef getShtGroupSignature(ArrayRef<Elf_Shdr> sections,
211 const Elf_Shdr &sec);
250 const Elf_Shdr *addrsigSec = nullptr;
263 InputSectionBase *getRelocTarget(const Elf_Shdr &sec);
264 InputSectionBase *createInputSection(const Elf_Shdr &sec);
265 StringRef getSectionName(const Elf_Shdr &sec);
267 bool shouldMerge(const Elf_Shdr &sec, StringRef name);
DInputFiles.cpp350 template <typename Elf_Shdr>
351 static const Elf_Shdr *findSection(ArrayRef<Elf_Shdr> sections, uint32_t type) { in findSection()
352 for (const Elf_Shdr &sec : sections) in findSection()
359 using Elf_Shdr = typename ELFT::Shdr; in init() typedef
368 ArrayRef<Elf_Shdr> sections = CHECK(obj.sections(), this); in init()
373 const Elf_Shdr *symtabSec = in init()
423 StringRef ObjFile<ELFT>::getShtGroupSignature(ArrayRef<Elf_Shdr> sections, in getShtGroupSignature()
424 const Elf_Shdr &sec) { in getShtGroupSignature()
444 bool ObjFile<ELFT>::shouldMerge(const Elf_Shdr &sec, StringRef name) { in shouldMerge()
500 ArrayRef<Elf_Shdr> sections = CHECK(this->getObj().sections(), this); in initializeJustSymbols()
[all …]
/freebsd-12-stable/lib/libc/gen/
Dnlist.c201 static void elf_sym_to_nlist(struct nlist *, Elf_Sym *, Elf_Shdr *, int);
246 Elf_Shdr *shdr = NULL; in __elf_fdnlist()
272 shdr = (Elf_Shdr *)base; in __elf_fdnlist()
374 elf_sym_to_nlist(struct nlist *nl, Elf_Sym *s, Elf_Shdr *shdr, int shnum) in elf_sym_to_nlist()
391 Elf_Shdr *sh = shdr + s->st_shndx; in elf_sym_to_nlist()
/freebsd-12-stable/stand/common/
Dload_elf_obj.c56 Elf_Shdr *e_shdr;
149 hdr->e_shentsize != sizeof(Elf_Shdr)) { in __elfN()
232 Elf_Shdr *shdr, *cshdr, *lshdr; in __elfN()
474 Elf_Shdr *shdr; in __elfN()
512 Elf_Shdr *shdr; in __elfN()
Dload_elf.c184 static int elf_section_header_convert(const Elf_Ehdr *ehdr, Elf_Shdr *shdr) in elf_section_header_convert()
471 Elf_Shdr *shdr; in __elfN()
950 Elf_Shdr *sh_meta, *shdr = NULL; in __elfN()
951 Elf_Shdr *sh_data[2]; in __elfN()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/InterfaceStub/
DELFObjHandler.cpp77 using Elf_Shdr = typename ELFT::Shdr; typedef
79 Elf_Shdr Shdr;
174 using Elf_Shdr = typename ELFT::Shdr; typedef in llvm::ifs::__anon17d94db60111::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()
/freebsd-12-stable/usr.sbin/crunch/crunchide/
Dexec_elf32.c93 Elf_Shdr *shdr;
228 Elf_Shdr *shdrp = NULL, *symtabshdr, *strtabshdr, *shstrtabshdr; in ELFNAMEEND()
229 Elf_Shdr shdrshdr; in ELFNAMEEND()
/freebsd-12-stable/sys/kern/
Dkern_ctf.c51 Elf_Shdr *shdr = NULL;
127 hdr->e_shentsize != sizeof(Elf_Shdr)) {
Dlink_elf.c698 link_elf_locate_exidx(linker_file_t lf, Elf_Shdr *shdr, int nhdr) in link_elf_locate_exidx()
721 Elf_Shdr *shdr; in link_elf_locate_exidx_preload()
727 shdr = (Elf_Shdr *)modinfo; in link_elf_locate_exidx_preload()
728 nhdr = modinfo[-1] / sizeof(Elf_Shdr); in link_elf_locate_exidx_preload()
848 Elf_Shdr *shdr; in link_elf_load_file()
Dlink_elf_obj.c100 Elf_Shdr *e_shdr;
320 Elf_Shdr *shdr; in link_elf_link_preload()
339 shdr = (Elf_Shdr *)preload_search_info(modptr, MODINFO_METADATA | in link_elf_link_preload()
634 Elf_Shdr *shdr; in link_elf_load_file()
729 hdr->e_shentsize != sizeof(Elf_Shdr)) { in link_elf_load_file()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Object/
DELF.cpp377 ELFFile<ELFT>::android_relas(const Elf_Shdr &Sec) const { in android_relas()
537 for (const Elf_Shdr &Sec : *SectionsOrError) { in dynamicEntries()
617 ELFFile<ELFT>::decodeBBAddrMap(const Elf_Shdr &Sec) const { in decodeBBAddrMap()
/freebsd-12-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/ELF/
DObject.cpp70 Elf_Shdr &Shdr = *reinterpret_cast<Elf_Shdr *>(B); in writeShdr()
1538 Expected<const Elf_Shdr *> Shdr = ElfFile.getSection(SymTab->Index); in initSymbolTable()
1567 Expected<const Elf_Shdr *> ShndxSec = in initSymbolTable()
1677 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) { in makeSection()
1767 for (const typename ELFFile<ELFT>::Elf_Shdr &Shdr : *Sections) { in readSectionHeaders()
1803 Expected<const Elf_Shdr *> Sec = ElfFile.getSection(0); in readSections()
1860 const typename ELFFile<ELFT>::Elf_Shdr *Shdr = in readSections()
2012 Ehdr.e_shentsize = sizeof(Elf_Shdr); in writeEhdr()
2051 Elf_Shdr &Shdr = in writeShdrs()
2052 *reinterpret_cast<Elf_Shdr *>(Buf->getBufferStart() + Obj.SHOff); in writeShdrs()
[all …]
/freebsd-12-stable/usr.bin/gcore/
Delfcore.c235 hdrsize += sizeof(Elf_Shdr); in elf_coredump()
452 Elf_Shdr *shdr; in elf_puthdr()
482 ehdr->e_shentsize = sizeof(Elf_Shdr); in elf_puthdr()
494 shdr = (Elf_Shdr *)((char *)hdr + ehdr->e_shoff); in elf_puthdr()
/freebsd-12-stable/usr.sbin/kldxref/
Def_obj.c82 Elf_Shdr *e_shdr;
361 Elf_Shdr *shdr; in ef_obj_open()
404 hdr->e_shentsize != sizeof(Elf_Shdr)) in ef_obj_open()
/freebsd-12-stable/sys/x86/xen/
Dpv.c478 Elf_Shdr *shdr; in xen_pvh_parse_symtab()
492 shdr = (Elf_Shdr *)((uint8_t *)ehdr + ehdr->e_shoff); in xen_pvh_parse_symtab()
/freebsd-12-stable/sys/dev/ksyms/
Dksyms.c106 Elf_Shdr kh_shdr[SHDR_NUM];
293 hdr->kh_ehdr.e_shentsize = sizeof(Elf_Shdr); in ksyms_snapshot()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp108 Elf_Shdr *shdr = in updateSectionAddress()
109 const_cast<Elf_Shdr *>(reinterpret_cast<const Elf_Shdr *>(ShdrRef.p)); in updateSectionAddress()
143 typedef typename ELFT::Shdr Elf_Shdr; in createRTDyldELFObject() typedef
164 Elf_Shdr *shdr = const_cast<Elf_Shdr *>( in createRTDyldELFObject()
165 reinterpret_cast<const Elf_Shdr *>(ShdrRef.p)); in createRTDyldELFObject()

12