Lines Matching defs:COFFObjectFile
1 //===- COFFObjectFile.cpp - COFF object file implementation ---------------===//
9 // This file declares the COFFObjectFile class.
101 const coff_symbol_type *COFFObjectFile::toSymb(DataRefImpl Ref) const {
118 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const {
135 void COFFObjectFile::moveSymbolNext(DataRefImpl &Ref) const {
150 Expected<StringRef> COFFObjectFile::getSymbolName(DataRefImpl Ref) const {
154 uint64_t COFFObjectFile::getSymbolValueImpl(DataRefImpl Ref) const {
158 uint32_t COFFObjectFile::getSymbolAlignment(DataRefImpl Ref) const {
165 Expected<uint64_t> COFFObjectFile::getSymbolAddress(DataRefImpl Ref) const {
186 Expected<SymbolRef::Type> COFFObjectFile::getSymbolType(DataRefImpl Ref) const {
209 Expected<uint32_t> COFFObjectFile::getSymbolFlags(DataRefImpl Ref) const {
240 uint64_t COFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Ref) const {
246 COFFObjectFile::getSymbolSection(DataRefImpl Ref) const {
258 unsigned COFFObjectFile::getSymbolSectionID(SymbolRef Sym) const {
263 void COFFObjectFile::moveSectionNext(DataRefImpl &Ref) const {
269 Expected<StringRef> COFFObjectFile::getSectionName(DataRefImpl Ref) const {
274 uint64_t COFFObjectFile::getSectionAddress(DataRefImpl Ref) const {
284 uint64_t COFFObjectFile::getSectionIndex(DataRefImpl Sec) const {
288 uint64_t COFFObjectFile::getSectionSize(DataRefImpl Ref) const {
293 COFFObjectFile::getSectionContents(DataRefImpl Ref) const {
301 uint64_t COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const {
306 bool COFFObjectFile::isSectionCompressed(DataRefImpl Sec) const {
310 bool COFFObjectFile::isSectionText(DataRefImpl Ref) const {
315 bool COFFObjectFile::isSectionData(DataRefImpl Ref) const {
320 bool COFFObjectFile::isSectionBSS(DataRefImpl Ref) const {
330 bool COFFObjectFile::isDebugSection(DataRefImpl Ref) const {
341 unsigned COFFObjectFile::getSectionID(SectionRef Sec) const {
348 bool COFFObjectFile::isSectionVirtual(DataRefImpl Ref) const {
395 relocation_iterator COFFObjectFile::section_rel_begin(DataRefImpl Ref) const {
405 relocation_iterator COFFObjectFile::section_rel_end(DataRefImpl Ref) const {
416 Error COFFObjectFile::initSymbolTablePtr() {
454 uint64_t COFFObjectFile::getImageBase() const {
464 Error COFFObjectFile::getVaPtr(uint64_t Addr, uintptr_t &Res) const {
472 Error COFFObjectFile::getRvaPtr(uint32_t Addr, uintptr_t &Res,
484 // COFFObjectFile::initialize can ignore the error.
506 Error COFFObjectFile::getRvaAndSizeAsBytes(uint32_t RVA, uint32_t Size,
534 Error COFFObjectFile::getHintName(uint32_t Rva, uint16_t &Hint,
545 Error COFFObjectFile::getDebugPDBInfo(const debug_directory *DebugDir,
564 Error COFFObjectFile::getDebugPDBInfo(const codeview::DebugInfo *&PDBInfo,
576 Error COFFObjectFile::initImportTablePtr() {
602 Error COFFObjectFile::initDelayImportTablePtr() {
626 Error COFFObjectFile::initExportTablePtr() {
649 Error COFFObjectFile::initBaseRelocPtr() {
673 Error COFFObjectFile::initDebugDirectoryPtr() {
703 Error COFFObjectFile::initTLSDirectoryPtr() {
738 Error COFFObjectFile::initLoadConfigPtr() {
821 Error COFFObjectFile::initDynamicRelocPtr(uint32_t SectionIndex,
860 Expected<std::unique_ptr<COFFObjectFile>>
861 COFFObjectFile::create(MemoryBufferRef Object) {
862 std::unique_ptr<COFFObjectFile> Obj(new COFFObjectFile(std::move(Object)));
868 COFFObjectFile::COFFObjectFile(MemoryBufferRef Object)
887 Error COFFObjectFile::initialize() {
1029 basic_symbol_iterator COFFObjectFile::symbol_begin() const {
1035 basic_symbol_iterator COFFObjectFile::symbol_end() const {
1042 import_directory_iterator COFFObjectFile::import_directory_begin() const {
1051 import_directory_iterator COFFObjectFile::import_directory_end() const {
1057 COFFObjectFile::delay_import_directory_begin() const {
1063 COFFObjectFile::delay_import_directory_end() const {
1069 export_directory_iterator COFFObjectFile::export_directory_begin() const {
1074 export_directory_iterator COFFObjectFile::export_directory_end() const {
1082 section_iterator COFFObjectFile::section_begin() const {
1088 section_iterator COFFObjectFile::section_end() const {
1096 base_reloc_iterator COFFObjectFile::base_reloc_begin() const {
1100 base_reloc_iterator COFFObjectFile::base_reloc_end() const {
1104 dynamic_reloc_iterator COFFObjectFile::dynamic_reloc_begin() const {
1109 dynamic_reloc_iterator COFFObjectFile::dynamic_reloc_end() const {
1117 uint8_t COFFObjectFile::getBytesInAddress() const {
1121 StringRef COFFObjectFile::getFileFormatName() const {
1142 Triple::ArchType COFFObjectFile::getArch() const {
1146 Expected<uint64_t> COFFObjectFile::getStartAddress() const {
1153 COFFObjectFile::import_directories() const {
1158 COFFObjectFile::delay_import_directories() const {
1164 COFFObjectFile::export_directories() const {
1168 iterator_range<base_reloc_iterator> COFFObjectFile::base_relocs() const {
1172 iterator_range<dynamic_reloc_iterator> COFFObjectFile::dynamic_relocs() const {
1176 const data_directory *COFFObjectFile::getDataDirectory(uint32_t Index) const {
1187 Expected<const coff_section *> COFFObjectFile::getSection(int32_t Index) const {
1200 Expected<StringRef> COFFObjectFile::getString(uint32_t Offset) const {
1209 Expected<StringRef> COFFObjectFile::getSymbolName(COFFSymbolRef Symbol) const {
1214 COFFObjectFile::getSymbolName(const coff_symbol_generic *Symbol) const {
1228 COFFObjectFile::getSymbolAuxData(COFFSymbolRef Symbol) const {
1250 uint32_t COFFObjectFile::getSymbolIndex(COFFSymbolRef Symbol) const {
1261 COFFObjectFile::getSectionName(const coff_section *Sec) const {
1282 uint64_t COFFObjectFile::getSectionSize(const coff_section *Sec) const {
1298 Error COFFObjectFile::getSectionContents(const coff_section *Sec,
1316 const coff_relocation *COFFObjectFile::toRel(DataRefImpl Rel) const {
1320 void COFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const {
1325 uint64_t COFFObjectFile::getRelocationOffset(DataRefImpl Rel) const {
1330 symbol_iterator COFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const {
1344 uint64_t COFFObjectFile::getRelocationType(DataRefImpl Rel) const {
1350 COFFObjectFile::getCOFFSection(const SectionRef &Section) const {
1354 COFFSymbolRef COFFObjectFile::getCOFFSymbol(const DataRefImpl &Ref) const {
1362 COFFSymbolRef COFFObjectFile::getCOFFSymbol(const SymbolRef &Symbol) const {
1367 COFFObjectFile::getCOFFRelocation(const RelocationRef &Reloc) const {
1372 COFFObjectFile::getRelocations(const coff_section *Sec) const {
1381 StringRef COFFObjectFile::getRelocationTypeName(uint16_t Type) const {
1498 void COFFObjectFile::getRelocationTypeName(
1505 bool COFFObjectFile::isRelocatableObject() const {
1509 StringRef COFFObjectFile::mapDebugSectionName(StringRef Name) const {
1515 std::unique_ptr<MemoryBuffer> COFFObjectFile::getHybridObjectView() const {
1582 makeImportedSymbolIterator(const COFFObjectFile *Object,
1593 importedSymbolBegin(uint32_t RVA, const COFFObjectFile *Object) {
1601 importedSymbolEnd(uint32_t RVA, const COFFObjectFile *Object) {
1895 Expected<std::unique_ptr<COFFObjectFile>>
1897 return COFFObjectFile::create(Object);
2141 Error Arm64XRelocRef::validate(const COFFObjectFile *Obj) const {
2286 Error ResourceSectionRef::load(const COFFObjectFile *O) {
2299 Error ResourceSectionRef::load(const COFFObjectFile *O, const SectionRef &S) {