Home | History | Annotate | Download | only in Object

Lines Matching defs:COFFObjectFile

1 //===- COFFObjectFile.cpp - COFF object file implementation -----*- C++ -*-===//
10 // This file declares the COFFObjectFile class.
92 const coff_symbol *COFFObjectFile::toSymb(DataRefImpl Ref) const {
110 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const {
127 void COFFObjectFile::moveSymbolNext(DataRefImpl &Ref) const {
133 std::error_code COFFObjectFile::getSymbolName(DataRefImpl Ref,
139 std::error_code COFFObjectFile::getSymbolAddress(DataRefImpl Ref,
155 std::error_code COFFObjectFile::getSymbolType(DataRefImpl Ref,
179 uint32_t COFFObjectFile::getSymbolFlags(DataRefImpl Ref) const {
206 std::error_code COFFObjectFile::getSymbolSize(DataRefImpl Ref,
226 COFFObjectFile::getSymbolSection(DataRefImpl Ref,
242 void COFFObjectFile::moveSectionNext(DataRefImpl &Ref) const {
248 std::error_code COFFObjectFile::getSectionName(DataRefImpl Ref,
254 std::error_code COFFObjectFile::getSectionAddress(DataRefImpl Ref,
261 std::error_code COFFObjectFile::getSectionSize(DataRefImpl Ref,
268 std::error_code COFFObjectFile::getSectionContents(DataRefImpl Ref,
277 std::error_code COFFObjectFile::getSectionAlignment(DataRefImpl Ref,
286 std::error_code COFFObjectFile::isSectionText(DataRefImpl Ref,
293 std::error_code COFFObjectFile::isSectionData(DataRefImpl Ref,
300 std::error_code COFFObjectFile::isSectionBSS(DataRefImpl Ref,
308 COFFObjectFile::isSectionRequiredForExecution(DataRefImpl Ref,
315 std::error_code COFFObjectFile::isSectionVirtual(DataRefImpl Ref,
322 std::error_code COFFObjectFile::isSectionZeroInit(DataRefImpl Ref,
329 std::error_code COFFObjectFile::isSectionReadOnlyData(DataRefImpl Ref,
336 std::error_code COFFObjectFile::sectionContainsSymbol(DataRefImpl SecRef,
351 relocation_iterator COFFObjectFile::section_rel_begin(DataRefImpl Ref) const {
383 relocation_iterator COFFObjectFile::section_rel_end(DataRefImpl Ref) const {
398 std::error_code COFFObjectFile::initSymbolTablePtr() {
431 std::error_code COFFObjectFile::getVaPtr(uint64_t Addr, uintptr_t &Res) const {
440 std::error_code COFFObjectFile::getRvaPtr(uint32_t Addr, uintptr_t &Res) const {
456 std::error_code COFFObjectFile::getHintName(uint32_t Rva, uint16_t &Hint,
468 std::error_code COFFObjectFile::initImportTablePtr() {
494 std::error_code COFFObjectFile::initExportTablePtr() {
514 COFFObjectFile::COFFObjectFile(std::unique_ptr<MemoryBuffer> Object,
600 basic_symbol_iterator COFFObjectFile::symbol_begin_impl() const {
606 basic_symbol_iterator COFFObjectFile::symbol_end_impl() const {
613 library_iterator COFFObjectFile::needed_library_begin() const {
615 report_fatal_error("Libraries needed unimplemented in COFFObjectFile");
618 library_iterator COFFObjectFile::needed_library_end() const {
620 report_fatal_error("Libraries needed unimplemented in COFFObjectFile");
623 StringRef COFFObjectFile::getLoadName() const {
628 import_directory_iterator COFFObjectFile::import_directory_begin() const {
633 import_directory_iterator COFFObjectFile::import_directory_end() const {
638 export_directory_iterator COFFObjectFile::export_directory_begin() const {
643 export_directory_iterator COFFObjectFile::export_directory_end() const {
651 section_iterator COFFObjectFile::section_begin() const {
657 section_iterator COFFObjectFile::section_end() const {
665 uint8_t COFFObjectFile::getBytesInAddress() const {
669 StringRef COFFObjectFile::getFileFormatName() const {
682 unsigned COFFObjectFile::getArch() const {
697 std::error_code COFFObjectFile::getHeader(const coff_file_header *&Res) const {
702 COFFObjectFile::getCOFFHeader(const coff_file_header *&Res) const {
707 std::error_code COFFObjectFile::getPE32Header(const pe32_header *&Res) const {
713 COFFObjectFile::getPE32PlusHeader(const pe32plus_header *&Res) const {
719 COFFObjectFile::getDataDirectory(uint32_t Index,
733 std::error_code COFFObjectFile::getSection(int32_t Index,
746 std::error_code COFFObjectFile::getString(uint32_t Offset,
757 std::error_code COFFObjectFile::getSymbol(uint32_t Index,
766 std::error_code COFFObjectFile::getSymbolName(const coff_symbol *Symbol,
785 ArrayRef<uint8_t> COFFObjectFile::getSymbolAuxData(
808 std::error_code COFFObjectFile::getSectionName(const coff_section *Sec,
837 COFFObjectFile::getSectionContents(const coff_section *Sec,
851 const coff_relocation *COFFObjectFile::toRel(DataRefImpl Rel) const {
855 void COFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const {
860 std::error_code COFFObjectFile::getRelocationAddress(DataRefImpl Rel,
862 report_fatal_error("getRelocationAddress not implemented in COFFObjectFile");
865 std::error_code COFFObjectFile::getRelocationOffset(DataRefImpl Rel,
871 symbol_iterator COFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const {
878 std::error_code COFFObjectFile::getRelocationType(DataRefImpl Rel,
886 COFFObjectFile::getCOFFSection(const SectionRef &Section) const {
891 COFFObjectFile::getCOFFSymbol(const SymbolRef &Symbol) const {
896 COFFObjectFile::getCOFFRelocation(const RelocationRef &Reloc) const {
906 COFFObjectFile::getRelocationTypeName(DataRefImpl Rel,
982 COFFObjectFile::getRelocationValueString(DataRefImpl Rel,
997 std::error_code COFFObjectFile::getLibraryNext(DataRefImpl LibData,
999 report_fatal_error("getLibraryNext not implemented in COFFObjectFile");
1002 std::error_code COFFObjectFile::getLibraryPath(DataRefImpl LibData,
1004 report_fatal_error("getLibraryPath not implemented in COFFObjectFile");
1118 std::unique_ptr<COFFObjectFile> Ret(
1119 new COFFObjectFile(std::move(Object), EC));