Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/Object/
DELF.h44 typedef Elf_Shdr_Impl<ELFT> Elf_Shdr; typedef
75 const Elf_Shdr *SectionHeaderTable = nullptr;
82 const T *getEntry(const Elf_Shdr *Section, uint32_t Entry) const;
84 ErrorOr<StringRef> getStringTable(const Elf_Shdr *Section) const;
85 ErrorOr<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
87 ErrorOr<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const;
89 void VerifyStrTab(const Elf_Shdr *sh) const;
97 const Elf_Shdr *SymTab) const;
114 const Elf_Sym *symbol_begin(const Elf_Shdr *Sec) const { in symbol_begin()
121 const Elf_Sym *symbol_end(const Elf_Shdr *Sec) const { in symbol_end()
[all …]
DELFObjectFile.h195 typedef typename ELFFile<ELFT>::Elf_Shdr Elf_Shdr; typedef
204 const Elf_Shdr *DotDynSymSec = nullptr; // Dynamic symbol table section.
205 const Elf_Shdr *DotSymtabSec = nullptr; // Symbol table section.
219 const Elf_Shdr *SymTab) const;
251 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection()
255 DataRefImpl toDRI(const Elf_Shdr *SymTable, unsigned SymbolNum) const { in toDRI()
267 (reinterpret_cast<uintptr_t>(SymTable) - SHT) / sizeof(Elf_Shdr); in toDRI()
274 const Elf_Shdr *toELFShdrIter(DataRefImpl Sec) const { in toELFShdrIter()
275 return reinterpret_cast<const Elf_Shdr *>(Sec.p); in toELFShdrIter()
278 DataRefImpl toDRI(const Elf_Shdr *Sec) const { in toDRI()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DELF.h77 using Elf_Shdr = typename ELFT::Shdr; variable
126 Expected<const T *> getEntry(const Elf_Shdr *Section, uint32_t Entry) const;
129 getStringTable(const Elf_Shdr *Section,
131 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
132 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section,
135 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const;
136 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section,
149 const Elf_Shdr *SymTab) const;
170 Expected<Elf_Sym_Range> symbols(const Elf_Shdr *Sec) const { in symbols()
176 Expected<Elf_Rela_Range> relas(const Elf_Shdr *Sec) const { in relas()
[all …]
DELFObjectFile.h236 using Elf_Shdr = typename ELFT::Shdr; variable
242 SectionRef toSectionRef(const Elf_Shdr *Sec) const { in toSectionRef()
248 const Elf_Shdr *DotDynSymSec, const Elf_Shdr *DotSymtabSec,
254 const Elf_Shdr *DotDynSymSec = nullptr; // Dynamic symbol table section.
255 const Elf_Shdr *DotSymtabSec = nullptr; // Symbol table section.
270 const Elf_Shdr *SymTab) const;
307 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection()
314 DataRefImpl toDRI(const Elf_Shdr *SymTable, unsigned SymbolNum) const { in toDRI()
332 (reinterpret_cast<uintptr_t>(SymTable) - SHT) / sizeof(Elf_Shdr); in toDRI()
339 const Elf_Shdr *toELFShdrIter(DataRefImpl Sec) const { in toELFShdrIter()
[all …]
/external/llvm/tools/obj2yaml/
Delf2yaml.cpp25 typedef typename object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr; typedef in __anon1a674b1e0111::ELFDumper
31 std::error_code dumpSymbol(const Elf_Sym *Sym, const Elf_Shdr *SymTab,
33 std::error_code dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S);
34 std::error_code dumpCommonRelocationSection(const Elf_Shdr *Shdr,
37 std::error_code dumpRelocation(const RelT *Rel, const Elf_Shdr *SymTab,
40 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr);
41 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr);
43 dumpContentSection(const Elf_Shdr *Shdr);
44 ErrorOr<ELFYAML::NoBitsSection *> dumpNoBitsSection(const Elf_Shdr *Shdr);
45 ErrorOr<ELFYAML::Group *> dumpGroup(const Elf_Shdr *Shdr);
[all …]
/external/llvm-project/llvm/include/llvm/Object/
DELF.h95 using Elf_Shdr = typename ELFT::Shdr; variable
144 Expected<const T *> getEntry(const Elf_Shdr &Section, uint32_t Entry) const;
147 getStringTable(const Elf_Shdr &Section,
149 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
150 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section,
153 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const;
154 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section,
167 const Elf_Shdr *SymTab) const;
188 Expected<Elf_Sym_Range> symbols(const Elf_Shdr *Sec) const { in symbols()
194 Expected<Elf_Rela_Range> relas(const Elf_Shdr &Sec) const { in relas()
[all …]
DELFObjectFile.h239 using Elf_Shdr = typename ELFT::Shdr; variable
245 SectionRef toSectionRef(const Elf_Shdr *Sec) const { in toSectionRef()
249 ELFSymbolRef toSymbolRef(const Elf_Shdr *SymTable, unsigned SymbolNum) const { in toSymbolRef()
257 const Elf_Shdr *DotDynSymSec, const Elf_Shdr *DotSymtabSec,
258 const Elf_Shdr *DotSymtabShndxSec);
265 const Elf_Shdr *DotDynSymSec = nullptr; // Dynamic symbol table section.
266 const Elf_Shdr *DotSymtabSec = nullptr; // Symbol table section.
267 const Elf_Shdr *DotSymtabShndxSec = nullptr; // SHT_SYMTAB_SHNDX section.
283 const Elf_Shdr *SymTab) const;
320 DataRefImpl toDRI(const Elf_Shdr *SymTable, unsigned SymbolNum) const { in toDRI()
[all …]
/external/llvm-project/llvm/tools/obj2yaml/
Delf2yaml.cpp29 typedef typename ELFT::Shdr Elf_Shdr; typedef in __anondaeeffcc0111::ELFDumper
37 ArrayRef<Elf_Shdr> Sections;
48 Expected<StringRef> getUniquedSectionName(const Elf_Shdr *Sec);
51 const Elf_Shdr *SymTab);
57 DenseMap<const Elf_Shdr *, ArrayRef<Elf_Word>> ShndxTables;
65 Error dumpSymbols(const Elf_Shdr *Symtab,
67 Error dumpSymbol(const Elf_Sym *Sym, const Elf_Shdr *SymTab,
70 Error dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S);
71 Error dumpCommonRelocationSection(const Elf_Shdr *Shdr,
74 Error dumpRelocation(const RelT *Rel, const Elf_Shdr *SymTab,
[all …]
/external/llvm/tools/yaml2obj/
Dyaml2elf.cpp102 typedef typename object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr; typedef in __anon35a54e5e0311::ELFState
121 bool initSectionHeaders(std::vector<Elf_Shdr> &SHeaders,
123 void initSymtabSectionHeader(Elf_Shdr &SHeader,
125 void initStrtabSectionHeader(Elf_Shdr &SHeader, StringRef Name,
130 void writeSectionContent(Elf_Shdr &SHeader,
133 bool writeSectionContent(Elf_Shdr &SHeader,
136 bool writeSectionContent(Elf_Shdr &SHeader, const ELFYAML::Group &Group,
138 bool writeSectionContent(Elf_Shdr &SHeader,
178 Header.e_shentsize = sizeof(Elf_Shdr); in initELFHeader()
186 bool ELFState<ELFT>::initSectionHeaders(std::vector<Elf_Shdr> &SHeaders, in initSectionHeaders()
[all …]
/external/llvm/tools/llvm-readobj/
DARMEHABIPrinter.h310 typedef typename object::ELFFile<ET>::Elf_Shdr Elf_Shdr; typedef
316 const Elf_Shdr *Symtab;
329 const Elf_Shdr *FindExceptionTable(unsigned IndexTableIndex,
332 void PrintIndexTable(unsigned SectionIndex, const Elf_Shdr *IT) const;
333 void PrintExceptionTable(const Elf_Shdr *IT, const Elf_Shdr *EHT,
339 const Elf_Shdr *Symtab) in PrinterContext()
371 const typename object::ELFFile<ET>::Elf_Shdr *
382 for (const Elf_Shdr &Sec : unwrapOrError(ELF->sections())) { in FindExceptionTable()
386 ErrorOr<const Elf_Shdr *> SymTabOrErr = ELF->getSection(Sec.sh_link); in FindExceptionTable()
388 const Elf_Shdr *SymTab = *SymTabOrErr; in FindExceptionTable()
[all …]
DELFDumper.cpp53 typedef typename ELFO::Elf_Shdr Elf_Shdr; \
132 typedef typename ELFO::Elf_Shdr Elf_Shdr; typedef in __anon148931850111::ELFDumper
165 DynRegionInfo createDRIFrom(const Elf_Shdr *S) { in createDRIFrom()
177 void LoadVersionNeeds(const Elf_Shdr *ec) const;
178 void LoadVersionDefs(const Elf_Shdr *sec) const;
190 const Elf_Shdr *DotSymtabSec = nullptr;
194 const Elf_Shdr *dot_gnu_version_sec = nullptr; // .gnu.version
195 const Elf_Shdr *dot_gnu_version_r_sec = nullptr; // .gnu.version_r
196 const Elf_Shdr *dot_gnu_version_d_sec = nullptr; // .gnu.version_d
236 const Elf_Shdr *getDotSymtabSec() const { return DotSymtabSec; } in getDotSymtabSec()
[all …]
/external/llvm-project/llvm/lib/ObjectYAML/
DELFEmitter.cpp173 typedef typename ELFT::Shdr Elf_Shdr; typedef in __anonbe606ff10111::ELFState
213 bool initImplicitHeader(ContiguousBlobAccumulator &CBA, Elf_Shdr &Header,
215 void initSectionHeaders(std::vector<Elf_Shdr> &SHeaders,
217 void initSymtabSectionHeader(Elf_Shdr &SHeader, SymtabType STType,
220 void initStrtabSectionHeader(Elf_Shdr &SHeader, StringRef Name,
224 void initDWARFSectionHeader(Elf_Shdr &SHeader, StringRef Name,
228 std::vector<Elf_Shdr> &SHeaders);
236 void writeSectionContent(Elf_Shdr &SHeader,
239 void writeSectionContent(Elf_Shdr &SHeader,
242 void writeSectionContent(Elf_Shdr &SHeader,
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DELFEmitter.cpp107 typedef typename ELFT::Shdr Elf_Shdr; typedef in __anon637653e50111::ELFState
143 bool initImplicitHeader(ContiguousBlobAccumulator &CBA, Elf_Shdr &Header,
145 void initSectionHeaders(std::vector<Elf_Shdr> &SHeaders,
147 void initSymtabSectionHeader(Elf_Shdr &SHeader, SymtabType STType,
150 void initStrtabSectionHeader(Elf_Shdr &SHeader, StringRef Name,
155 std::vector<Elf_Shdr> &SHeaders);
163 void writeSectionContent(Elf_Shdr &SHeader,
166 void writeSectionContent(Elf_Shdr &SHeader,
169 void writeSectionContent(Elf_Shdr &SHeader,
172 void writeSectionContent(Elf_Shdr &SHeader, const ELFYAML::Group &Group,
[all …]
/external/llvm-project/lld/ELF/
DInputFiles.h191 using Elf_Shdr = typename ELFT::Shdr; variable
211 StringRef getShtGroupSignature(ArrayRef<Elf_Shdr> sections,
212 const Elf_Shdr &sec);
251 const Elf_Shdr *addrsigSec = nullptr;
264 InputSectionBase *getRelocTarget(const Elf_Shdr &sec);
265 InputSectionBase *createInputSection(const Elf_Shdr &sec);
266 StringRef getSectionName(const Elf_Shdr &sec);
268 bool shouldMerge(const Elf_Shdr &sec, StringRef name);
DInputFiles.cpp349 template <typename Elf_Shdr>
350 static const Elf_Shdr *findSection(ArrayRef<Elf_Shdr> sections, uint32_t type) { in findSection()
351 for (const Elf_Shdr &sec : sections) in findSection()
358 using Elf_Shdr = typename ELFT::Shdr; in init() typedef
367 ArrayRef<Elf_Shdr> sections = CHECK(obj.sections(), this); in init()
372 const Elf_Shdr *symtabSec = in init()
422 StringRef ObjFile<ELFT>::getShtGroupSignature(ArrayRef<Elf_Shdr> sections, in getShtGroupSignature()
423 const Elf_Shdr &sec) { in getShtGroupSignature()
443 bool ObjFile<ELFT>::shouldMerge(const Elf_Shdr &sec, StringRef name) { in shouldMerge()
499 ArrayRef<Elf_Shdr> sections = CHECK(this->getObj().sections(), this); in initializeJustSymbols()
[all …]
/external/llvm-project/llvm/tools/llvm-readobj/
DELFDumper.cpp86 using Elf_Shdr = typename ELFT::Shdr; \
323 std::pair<const Elf_Phdr *, const Elf_Shdr *> findDynamic();
342 const Elf_Shdr *DotSymtabSec = nullptr;
343 const Elf_Shdr *DotDynsymSec = nullptr;
344 const Elf_Shdr *DotCGProfileSec = nullptr;
345 const Elf_Shdr *DotAddrsigSec = nullptr;
349 const Elf_Shdr *SymbolVersionSection = nullptr; // .gnu.version
350 const Elf_Shdr *SymbolVersionNeedSection = nullptr; // .gnu.version_r
351 const Elf_Shdr *SymbolVersionDefSection = nullptr; // .gnu.version_d
359 std::string describe(const Elf_Shdr &Sec) const;
[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()
/external/llvm-project/llvm/lib/InterfaceStub/
DELFObjHandler.cpp76 using Elf_Shdr = typename ELFT::Shdr; typedef
78 Elf_Shdr Shdr;
173 using Elf_Shdr = typename ELFT::Shdr; typedef in llvm::elfabi::__anon897738b50111::ELFStubBuilder
260 return ElfHeader.e_shoff + ElfHeader.e_shnum * sizeof(Elf_Shdr); in getSize()
326 return ElfHeader.e_shoff + Sec.Index * sizeof(Elf_Shdr); in shdrOffset()
/external/llvm-project/llvm/tools/llvm-objcopy/ELF/
DObject.cpp71 Elf_Shdr &Shdr = *reinterpret_cast<Elf_Shdr *>(B); in writeShdr()
1525 Expected<const Elf_Shdr *> Shdr = ElfFile.getSection(SymTab->Index); in initSymbolTable()
1554 Expected<const Elf_Shdr *> ShndxSec = in initSymbolTable()
1664 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) { in makeSection()
1754 for (const typename ELFFile<ELFT>::Elf_Shdr &Shdr : *Sections) { in readSectionHeaders()
1790 Expected<const Elf_Shdr *> Sec = ElfFile.getSection(0); in readSections()
1847 const typename ELFFile<ELFT>::Elf_Shdr *Shdr = in readSections()
1999 Ehdr.e_shentsize = sizeof(Elf_Shdr); in writeEhdr()
2038 Elf_Shdr &Shdr = in writeShdrs()
2039 *reinterpret_cast<Elf_Shdr *>(Buf.getBufferStart() + Obj.SHOff); in writeShdrs()
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp38 typedef Elf_Shdr_Impl<ELFT> Elf_Shdr; typedef in __anon5b0ead5a0111::DyldELFObject
79 Elf_Shdr *shdr = in updateSectionAddress()
80 const_cast<Elf_Shdr *>(reinterpret_cast<const Elf_Shdr *>(ShdrRef.p)); in updateSectionAddress()
115 typedef typename ELFFile<ELFT>::Elf_Shdr Elf_Shdr; in createRTDyldELFObject() typedef
128 Elf_Shdr *shdr = const_cast<Elf_Shdr *>( in createRTDyldELFObject()
129 reinterpret_cast<const Elf_Shdr *>(ShdrRef.p)); in createRTDyldELFObject()
/external/llvm-project/llvm/test/tools/llvm-objcopy/ELF/
Dinvalid-e_shoff.test2 ## such that e_shoff + e_shnum * sizeof(Elf_Shdr) is past the end of the file,
/external/llvm/tools/llvm-objdump/
Dllvm-objdump.cpp493 typedef typename ELFObjectFile<ELFT>::Elf_Shdr Elf_Shdr; in getRelocationValueString() typedef
498 ErrorOr<const Elf_Shdr *> SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString()
501 const Elf_Shdr *Sec = *SecOrErr; in getRelocationValueString()
502 ErrorOr<const Elf_Shdr *> SymTabOrErr = EF.getSection(Sec->sh_link); in getRelocationValueString()
505 const Elf_Shdr *SymTab = *SymTabOrErr; in getRelocationValueString()
508 ErrorOr<const Elf_Shdr *> StrTabSec = EF.getSection(SymTab->sh_link); in getRelocationValueString()
538 const Elf_Shdr *SymSec = Obj->getSection((*SymSI)->getRawDataRefImpl()); in getRelocationValueString()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DELF.cpp351 ELFFile<ELFT>::android_relas(const Elf_Shdr *Sec) const { in android_relas()
525 for (const Elf_Shdr &Sec : *SectionsOrError) { in dynamicEntries()
/external/llvm-project/llvm/lib/Object/
DELF.cpp370 ELFFile<ELFT>::android_relas(const Elf_Shdr &Sec) const { in android_relas()
542 for (const Elf_Shdr &Sec : *SectionsOrError) { in dynamicEntries()

12