Home
last modified time | relevance | path

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

/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;
112 const Elf_Shdr *section_begin() const;
113 const Elf_Shdr *section_end() const;
[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-7.0/llvm/include/llvm/Object/
DELF.h58 using Elf_Shdr = typename ELFT::Shdr; variable
102 Expected<const T *> getEntry(const Elf_Shdr *Section, uint32_t Entry) const;
104 Expected<StringRef> getStringTable(const Elf_Shdr *Section) const;
105 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
106 Expected<StringRef> getStringTableForSymtab(const Elf_Shdr &Section,
109 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const;
110 Expected<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section,
123 const Elf_Shdr *SymTab) const;
143 Expected<Elf_Sym_Range> symbols(const Elf_Shdr *Sec) const { in symbols()
149 Expected<Elf_Rela_Range> relas(const Elf_Shdr *Sec) const { in relas()
[all …]
DELFObjectFile.h215 using Elf_Shdr = typename ELFT::Shdr; variable
223 const Elf_Shdr *DotDynSymSec, const Elf_Shdr *DotSymtabSec,
229 const Elf_Shdr *DotDynSymSec = nullptr; // Dynamic symbol table section.
230 const Elf_Shdr *DotSymtabSec = nullptr; // Symbol table section.
244 const Elf_Shdr *SymTab) const;
279 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection()
286 DataRefImpl toDRI(const Elf_Shdr *SymTable, unsigned SymbolNum) const { in toDRI()
304 (reinterpret_cast<uintptr_t>(SymTable) - SHT) / sizeof(Elf_Shdr); in toDRI()
311 const Elf_Shdr *toELFShdrIter(DataRefImpl Sec) const { in toELFShdrIter()
312 return reinterpret_cast<const Elf_Shdr *>(Sec.p); in toELFShdrIter()
[all …]
/external/llvm/tools/obj2yaml/
Delf2yaml.cpp25 typedef typename object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr; typedef in __anon05c603c00111::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/swiftshader/third_party/llvm-7.0/llvm/tools/obj2yaml/
Delf2yaml.cpp25 typedef typename ELFT::Shdr Elf_Shdr; typedef in __anon866bd0180111::ELFDumper
30 ArrayRef<Elf_Shdr> Sections;
37 Expected<StringRef> getUniquedSectionName(const Elf_Shdr *Sec);
39 const Elf_Shdr *SymTab);
44 std::error_code dumpSymbols(const Elf_Shdr *Symtab,
46 std::error_code dumpSymbol(const Elf_Sym *Sym, const Elf_Shdr *SymTab,
48 std::error_code dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S);
49 std::error_code dumpCommonRelocationSection(const Elf_Shdr *Shdr,
52 std::error_code dumpRelocation(const RelT *Rel, const Elf_Shdr *SymTab,
55 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr);
[all …]
/external/swiftshader/third_party/LLVM/lib/Object/
DELFObjectFile.cpp261 typedef Elf_Shdr_Impl<target_endianness, is64Bits> Elf_Shdr; typedef in __anon198eba5b0611::ELFObjectFile
289 typedef SmallVector<const Elf_Shdr*, 1> Sections_t;
291 typedef DenseMap<const Elf_Shdr*, SmallVector<uint32_t, 1> > RelocMap_t;
294 const Elf_Shdr *SectionHeaderTable;
295 const Elf_Shdr *dot_shstrtab_sec; // Section header string table.
296 const Elf_Shdr *dot_strtab_sec; // Symbol header string table.
306 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection()
315 const T *getEntry(const Elf_Shdr *Section, uint32_t Entry) const;
317 const Elf_Shdr *getSection(DataRefImpl index) const;
318 const Elf_Shdr *getSection(uint32_t index) const;
[all …]
/external/llvm/tools/yaml2obj/
Dyaml2elf.cpp102 typedef typename object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr; typedef in __anon210407000311::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 : 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 __anon79be9f670111::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/swiftshader/third_party/llvm-7.0/llvm/tools/yaml2obj/
Dyaml2elf.cpp113 typedef typename ELFT::Shdr Elf_Shdr; typedef in __anona1a9d3580311::ELFState
140 bool initSectionHeaders(std::vector<Elf_Shdr> &SHeaders,
142 void initSymtabSectionHeader(Elf_Shdr &SHeader, SymtabType STType,
144 void initStrtabSectionHeader(Elf_Shdr &SHeader, StringRef Name,
148 std::vector<Elf_Shdr> &SHeaders);
152 void writeSectionContent(Elf_Shdr &SHeader,
155 bool writeSectionContent(Elf_Shdr &SHeader,
158 bool writeSectionContent(Elf_Shdr &SHeader, const ELFYAML::Group &Group,
160 bool writeSectionContent(Elf_Shdr &SHeader,
209 Header.e_shentsize = sizeof(Elf_Shdr); in initELFHeader()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/
DARMEHABIPrinter.h327 typedef typename ET::Shdr Elf_Shdr; typedef
333 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 *IT, const Elf_Shdr *EHT,
356 const Elf_Shdr *Symtab) in PrinterContext()
400 for (const Elf_Shdr &Sec : unwrapOrError(ELF->sections())) { in FindExceptionTable()
407 const Elf_Shdr *SymTab = *SymTabOrErr; in FindExceptionTable()
431 void PrinterContext<ET>::PrintExceptionTable(const Elf_Shdr *IT, in PrintExceptionTable()
432 const Elf_Shdr *EHT, in PrintExceptionTable()
[all …]
DELFDumper.cpp83 using Elf_Shdr = typename ELFT::Shdr; \
194 DynRegionInfo createDRIFrom(const Elf_Shdr *S) { in createDRIFrom()
206 void LoadVersionNeeds(const Elf_Shdr *ec) const;
207 void LoadVersionDefs(const Elf_Shdr *sec) const;
220 const Elf_Shdr *DotSymtabSec = nullptr;
221 const Elf_Shdr *DotCGProfileSec = nullptr;
222 const Elf_Shdr *DotAddrsigSec = nullptr;
226 const Elf_Shdr *dot_gnu_version_sec = nullptr; // .gnu.version
227 const Elf_Shdr *dot_gnu_version_r_sec = nullptr; // .gnu.version_r
228 const Elf_Shdr *dot_gnu_version_d_sec = nullptr; // .gnu.version_d
[all …]
DDwarfCFIEHPrinter.h48 static const typename ELFO::Elf_Shdr *findSectionByAddress(const ELFO *Obj, in findSectionByAddress()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objcopy/
DObject.cpp703 const Elf_Shdr &Shdr = *unwrapOrError(ElfFile.getSection(SymTab->Index)); in initSymbolTable()
717 const Elf_Shdr &ShndxSec = in initSymbolTable()
785 SectionBase &ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) { in makeSection()
976 Ehdr.e_shentsize = sizeof(Elf_Shdr); in writeEhdr()
1016 Elf_Shdr &Shdr = *reinterpret_cast<Elf_Shdr *>(B); in writeShdrs()
1201 auto NullSectionSize = WriteSectionHeaders ? sizeof(Elf_Shdr) : 0; in totalSize()
1202 return Obj.SHOffset + size(Obj.sections()) * sizeof(Elf_Shdr) + in totalSize()
1284 uint64_t Offset = Obj.SHOffset + sizeof(Elf_Shdr); in finalize()
1287 Offset += sizeof(Elf_Shdr); in finalize()
DObject.h193 using Elf_Shdr = typename ELFT::Shdr;
629 using Elf_Shdr = typename ELFT::Shdr; variable
641 SectionBase &makeSection(const Elf_Shdr &Shdr);
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp38 typedef Elf_Shdr_Impl<ELFT> Elf_Shdr; typedef in __anon49db9fbc0111::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/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-7.0/llvm/lib/Object/
DELF.cpp341 ELFFile<ELFT>::android_relas(const Elf_Shdr *Sec) const { in android_relas()
505 for (const Elf_Shdr &Sec : *SectionsOrError) { in dynamicEntries()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp61 typedef Elf_Shdr_Impl<ELFT> Elf_Shdr; typedef in __anon93dcc9140111::DyldELFObject
116 Elf_Shdr *shdr = in updateSectionAddress()
117 const_cast<Elf_Shdr *>(reinterpret_cast<const Elf_Shdr *>(ShdrRef.p)); in updateSectionAddress()
151 typedef typename ELFT::Shdr Elf_Shdr; in createRTDyldELFObject() typedef
168 Elf_Shdr *shdr = const_cast<Elf_Shdr *>( in createRTDyldELFObject()
169 reinterpret_cast<const Elf_Shdr *>(ShdrRef.p)); in createRTDyldELFObject()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objdump/
DELFDump.cpp46 for (const typename ELFO::Elf_Shdr &Sec : *SectionsOrError) { in getDynamicStrTab()
Dllvm-objdump.cpp452 typedef typename ELFObjectFile<ELFT>::Elf_Shdr Elf_Shdr; in getRelocationValueString() typedef
460 const Elf_Shdr *Sec = *SecOrErr; in getRelocationValueString()
464 const Elf_Shdr *SymTab = *SymTabOrErr; in getRelocationValueString()
501 const Elf_Shdr *SymSec = Obj->getSection((*SymSI)->getRawDataRefImpl()); in getRelocationValueString()