Home
last modified time | relevance | path

Searched refs:Elf_Sym (Results 1 – 22 of 22) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELFObjectFile.h364 bool isExportedToOtherDSO(const Elf_Sym *ESym) const { in isExportedToOtherDSO()
505 Expected<const Elf_Sym *> SymOrErr = getSymbol(Sym); in getSymbolName()
550 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolValueImpl()
576 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolAddress()
616 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolAlignment()
635 Expected<const Elf_Sym *> SymOrErr = getSymbol(Sym); in getSymbolSize()
648 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolBinding()
656 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolOther()
664 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolELFType()
697 Expected<const Elf_Sym *> SymOrErr = getSymbol(Sym); in getSymbolFlags()
[all …]
H A DELF.h231 Expected<const Elf_Sym *> getRelocationSymbol(const Elf_Rel &Rel,
260 return makeArrayRef<Elf_Sym>(nullptr, nullptr); in symbols()
261 return getSectionContentsAsArray<Elf_Sym>(*Sec); in symbols()
372 Expected<const Elf_Shdr *> getSection(const Elf_Sym &Sym,
375 Expected<const Elf_Shdr *> getSection(const Elf_Sym &Sym,
380 Expected<const Elf_Sym *> getSymbol(const Elf_Shdr *Sec,
430 ELFFile<ELFT>::getSectionIndex(const Elf_Sym &Sym, Elf_Sym_Range Syms, in getSectionIndex()
447 ELFFile<ELFT>::getSection(const Elf_Sym &Sym, const Elf_Shdr *SymTab, in getSection()
457 ELFFile<ELFT>::getSection(const Elf_Sym &Sym, Elf_Sym_Range Symbols, in getSection()
631 return getEntry<Elf_Sym>(*SymTab, Index); in getRelocationSymbol()
[all …]
H A DELFTypes.h115 using Elf_Sym = typename ELFT::Sym; \
/llvm-project-15.0.7/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp101 using Elf_Sym = typename ELFT::Sym; typedef in llvm::ifs::__anon85c935ce0111::ELFSymbolTableBuilder
107 Elf_Sym S{}; in add()
116 size_t getSize() const { return Symbols.size() * sizeof(Elf_Sym); } in getSize()
119 memcpy(Buf, Symbols.data(), sizeof(Elf_Sym) * Symbols.size()); in write()
123 llvm::SmallVector<Elf_Sym, 8> Symbols;
174 using Elf_Sym = typename ELFT::Sym; typedef in llvm::ifs::__anon85c935ce0111::ELFStubBuilder
313 SymTab.Shdr.sh_entsize = sizeof(Elf_Sym); in fillSymTabShdr()
578 using Elf_Sym = typename ELFT::Sym; in buildStub() typedef
639 Elf_Sym_Range DynSyms = ArrayRef<Elf_Sym>( in buildStub()
640 reinterpret_cast<const Elf_Sym *>(*DynSymPtr), *SymCount); in buildStub()
/llvm-project-15.0.7/compiler-rt/lib/cfi/
H A Dcfi.cpp29 typedef ElfW(Sym) Elf_Sym; typedef
34 #define ElfW64_Sym Elf_Sym
37 #define ElfW32_Sym Elf_Sym
257 for (const Elf_Sym *p = (const Elf_Sym *)symtab; (Elf_Addr)p < strtab; in find_cfi_check_in_dso()
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DELFDumper.cpp537 for (const Elf_Sym &Sym : Syms) in printSymbolsHelper()
793 sizeof(Elf_Sym); in getSymbolVersion()
823 Expected<const Elf_Sym *> SymOrErr = in getRelocationTarget()
829 const Elf_Sym *Sym = *SymOrErr; in getRelocationTarget()
837 const Elf_Sym *FirstSym = in getRelocationTarget()
1980 if (Val != sizeof(Elf_Sym)) in parseDynamicTable()
4393 using Elf_Sym = typename ELFT::Sym; in getSymbolForReloc() typedef
6071 const Elf_Sym *Sym = nullptr; in printStackSize()
6367 const Elf_Sym &FirstSym = *cantFail( in printMipsPLT()
6869 ArrayRef<Elf_Sym> Syms; in printVersionSymbolSection()
[all …]
H A DARMEHABIPrinter.h324 typedef typename ET::Sym Elf_Sym; typedef
376 for (const Elf_Sym &Sym : unwrapOrError(FileName, ELF.symbols(Symtab))) { in FunctionAtAddress()
424 const Elf_Sym *Symbol = in FindExceptionTable()
/llvm-project-15.0.7/lld/ELF/
H A DInputFiles.cpp331 using Elf_Sym = typename ELFT::Sym; in init() typedef
1009 ArrayRef<Elf_Sym> eSyms = this->getELFSyms<ELFT>(); in initializeSymbols()
1020 const Elf_Sym &eSym = eSyms[i]; in initializeSymbols()
1057 const Elf_Sym &eSym = eSyms[i]; in initializeSymbols()
1072 ArrayRef<Elf_Sym> eSyms = this->getELFSyms<ELFT>(); in initializeLocalSymbols()
1074 const Elf_Sym &eSym = eSyms[i]; in initializeLocalSymbols()
1109 ArrayRef<Elf_Sym> eSyms = this->getELFSyms<ELFT>(); in postParse()
1111 const Elf_Sym &eSym = eSyms[i]; in postParse()
1326 using Elf_Sym = typename ELFT::Sym; in parse() typedef
1419 ArrayRef<Elf_Sym> syms = this->getGlobalELFSyms<ELFT>(); in parse()
[all …]
H A DInputFiles.h240 uint32_t getSectionIndex(const Elf_Sym &sym) const;
H A DSyntheticSections.cpp1471 addInt(DT_SYMENT, sizeof(Elf_Sym)); in computeContents()
2201 this->entsize = sizeof(Elf_Sym); in SymbolTableSection()
2224 buf += sizeof(Elf_Sym); in writeTo()
2226 auto *eSym = reinterpret_cast<Elf_Sym *>(buf); in writeTo()
2278 auto *eSym = reinterpret_cast<Elf_Sym *>(buf); in writeTo()
H A DRelocations.cpp268 using Elf_Sym = typename ELFT::Sym; in getSymbolsAt() typedef
273 for (const Elf_Sym &s : file.template getGlobalELFSyms<ELFT>()) { in getSymbolsAt()
H A DSyntheticSections.h647 using Elf_Sym = typename ELFT::Sym; variable
/llvm-project-15.0.7/llvm/test/tools/llvm-size/
H A Dinvalid-symbol-table-size.test2 ## whose sh_size isn't a multiple of the symbol size (sh_size % sizeof(Elf_Sym) != 0).
/llvm-project-15.0.7/llvm/test/tools/llvm-objdump/
H A Dinvalid-symbol-table-size.test2 ## whose sh_size isn't a multiple of the symbol size (sh_size % sizeof(Elf_Sym) != 0).
/llvm-project-15.0.7/llvm/test/tools/llvm-nm/
H A Dinvalid-symbol-table-size.test2 ## whose sh_size isn't a multiple of the symbol size (sh_size % sizeof(Elf_Sym) != 0).
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Delf2yaml.cpp31 ArrayRef<Elf_Sym> SymTable;
43 Expected<StringRef> getUniquedSymbolName(const Elf_Sym *Sym,
61 Error dumpSymbol(const Elf_Sym *Sym, const Elf_Shdr *SymTab,
147 ELFDumper<ELFT>::getUniquedSymbolName(const Elf_Sym *Sym, StringRef StrTable, in getUniquedSymbolName()
708 Error ELFDumper<ELFT>::dumpSymbol(const Elf_Sym *Sym, const Elf_Shdr *SymTab, in dumpSymbol()
758 const Elf_Sym *Sym = *SymOrErr; in dumpRelocation()
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp212 std::vector<Elf_Sym> toELFSymbols(ArrayRef<ELFYAML::Symbol> Symbols,
939 std::vector<Elf_Sym> Ret; in toELFSymbols()
944 Elf_Sym &Symbol = Ret[++I]; in toELFSymbols()
1027 std::vector<Elf_Sym> Syms = in initSymtabSectionHeader()
1029 SHeader.sh_size = Syms.size() * sizeof(Elf_Sym); in initSymtabSectionHeader()
/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObject.h134 using Elf_Sym = typename ELFT::Sym; variable
153 using Elf_Sym = typename ELFT::Sym; variable
H A DELFObject.cpp102 Sec.EntrySize = sizeof(Elf_Sym); in visit()
812 Elf_Sym *Sym = reinterpret_cast<Elf_Sym *>(Out.getBufferStart() + Sec.Offset); in visit()
1516 for (const typename ELFFile<ELFT>::Elf_Sym &Sym : *Symbols) { in initSymbolTable()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp120 Elf_Sym *sym = const_cast<Elf_Sym *>( in updateSymbolAddress()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp4453 using ELFSymTy = typename ELFObjectFile<ELFT>::Elf_Sym; in updateELFSymbolTable()
4804 using ELFSymTy = typename ELFObjectFile<ELFT>::Elf_Sym; in patchELFSymTabs()
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A Ddyn-symbols.test568 ## The code uses sizeof(Elf_Sym) for an entity size, so it can't be incorrect and