Lines Matching refs:MachOObjectFile
69 static T getStruct(const MachOObjectFile &O, const char *P) { in getStruct()
82 static Expected<T> getStructOrErr(const MachOObjectFile &O, const char *P) { in getStructOrErr()
95 getSectionPtr(const MachOObjectFile &O, MachOObjectFile::LoadCommandInfo L, in getSectionPtr()
109 static const char *getPtr(const MachOObjectFile &O, size_t Offset) { in getPtr()
115 getSymbolTableEntryBase(const MachOObjectFile &O, DataRefImpl DRI) { in getSymbolTableEntryBase()
128 static unsigned getCPUType(const MachOObjectFile &O) { in getCPUType()
142 static bool getPlainRelocationPCRel(const MachOObjectFile &O, in getPlainRelocationPCRel()
154 static unsigned getPlainRelocationLength(const MachOObjectFile &O, in getPlainRelocationLength()
166 static unsigned getPlainRelocationType(const MachOObjectFile &O, in getPlainRelocationType()
173 static uint32_t getSectionFlags(const MachOObjectFile &O, in getSectionFlags()
183 static Expected<MachOObjectFile::LoadCommandInfo>
184 getLoadCommandInfo(const MachOObjectFile &Obj, const char *Ptr, in getLoadCommandInfo()
193 return MachOObjectFile::LoadCommandInfo({Ptr, *CmdOrErr}); in getLoadCommandInfo()
198 static Expected<MachOObjectFile::LoadCommandInfo>
199 getFirstLoadCommandInfo(const MachOObjectFile &Obj) { in getFirstLoadCommandInfo()
208 static Expected<MachOObjectFile::LoadCommandInfo>
209 getNextLoadCommandInfo(const MachOObjectFile &Obj, uint32_t LoadCommandIndex, in getNextLoadCommandInfo()
210 const MachOObjectFile::LoadCommandInfo &L) { in getNextLoadCommandInfo()
221 static void parseHeader(const MachOObjectFile &Obj, T &Header, in parseHeader()
275 const MachOObjectFile &Obj, const MachOObjectFile::LoadCommandInfo &Load, in parseSegmentLoadCommand()
395 static Error checkSymtabCommand(const MachOObjectFile &Obj, in checkSymtabCommand()
396 const MachOObjectFile::LoadCommandInfo &Load, in checkSymtabCommand()
451 static Error checkDysymtabCommand(const MachOObjectFile &Obj, in checkDysymtabCommand()
452 const MachOObjectFile::LoadCommandInfo &Load, in checkDysymtabCommand()
581 static Error checkLinkeditDataCommand(const MachOObjectFile &Obj, in checkLinkeditDataCommand()
582 const MachOObjectFile::LoadCommandInfo &Load, in checkLinkeditDataCommand()
616 static Error checkDyldInfoCommand(const MachOObjectFile &Obj, in checkDyldInfoCommand()
617 const MachOObjectFile::LoadCommandInfo &Load, in checkDyldInfoCommand()
712 static Error checkDylibCommand(const MachOObjectFile &Obj, in checkDylibCommand()
713 const MachOObjectFile::LoadCommandInfo &Load, in checkDylibCommand()
741 static Error checkDylibIdCommand(const MachOObjectFile &Obj, in checkDylibIdCommand()
742 const MachOObjectFile::LoadCommandInfo &Load, in checkDylibIdCommand()
758 static Error checkDyldCommand(const MachOObjectFile &Obj, in checkDyldCommand()
759 const MachOObjectFile::LoadCommandInfo &Load, in checkDyldCommand()
787 static Error checkVersCommand(const MachOObjectFile &Obj, in checkVersCommand()
788 const MachOObjectFile::LoadCommandInfo &Load, in checkVersCommand()
802 static Error checkNoteCommand(const MachOObjectFile &Obj, in checkNoteCommand()
803 const MachOObjectFile::LoadCommandInfo &Load, in checkNoteCommand()
828 parseBuildVersionCommand(const MachOObjectFile &Obj, in parseBuildVersionCommand()
829 const MachOObjectFile::LoadCommandInfo &Load, in parseBuildVersionCommand()
848 static Error checkRpathCommand(const MachOObjectFile &Obj, in checkRpathCommand()
849 const MachOObjectFile::LoadCommandInfo &Load, in checkRpathCommand()
877 static Error checkEncryptCommand(const MachOObjectFile &Obj, in checkEncryptCommand()
878 const MachOObjectFile::LoadCommandInfo &Load, in checkEncryptCommand()
901 static Error checkLinkerOptCommand(const MachOObjectFile &Obj, in checkLinkerOptCommand()
902 const MachOObjectFile::LoadCommandInfo &Load, in checkLinkerOptCommand()
934 static Error checkSubCommand(const MachOObjectFile &Obj, in checkSubCommand()
935 const MachOObjectFile::LoadCommandInfo &Load, in checkSubCommand()
961 static Error checkThreadCommand(const MachOObjectFile &Obj, in checkThreadCommand()
962 const MachOObjectFile::LoadCommandInfo &Load, in checkThreadCommand()
1148 static Error checkTwoLevelHintsCommand(const MachOObjectFile &Obj, in checkTwoLevelHintsCommand()
1149 const MachOObjectFile::LoadCommandInfo in checkTwoLevelHintsCommand()
1199 Expected<std::unique_ptr<MachOObjectFile>>
1200 MachOObjectFile::create(MemoryBufferRef Object, bool IsLittleEndian, in create()
1204 std::unique_ptr<MachOObjectFile> Obj( in create()
1205 new MachOObjectFile(std::move(Object), IsLittleEndian, in create()
1213 MachOObjectFile::MachOObjectFile(MemoryBufferRef Object, bool IsLittleEndian, in MachOObjectFile() function in MachOObjectFile
1633 Error MachOObjectFile::checkSymbolTable() const { in checkSymbolTable()
1636 MachO::mach_header_64 H_64 = MachOObjectFile::getHeader64(); in checkSymbolTable()
1639 MachO::mach_header H = MachOObjectFile::getHeader(); in checkSymbolTable()
1701 void MachOObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
1708 Expected<StringRef> MachOObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
1723 unsigned MachOObjectFile::getSectionType(SectionRef Sec) const { in getSectionType()
1729 uint64_t MachOObjectFile::getNValue(DataRefImpl Sym) const { in getNValue()
1740 std::error_code MachOObjectFile::getIndirectName(DataRefImpl Symb, in getIndirectName()
1754 uint64_t MachOObjectFile::getSymbolValueImpl(DataRefImpl Sym) const { in getSymbolValueImpl()
1758 Expected<uint64_t> MachOObjectFile::getSymbolAddress(DataRefImpl Sym) const { in getSymbolAddress()
1762 uint32_t MachOObjectFile::getSymbolAlignment(DataRefImpl DRI) const { in getSymbolAlignment()
1771 uint64_t MachOObjectFile::getCommonSymbolSizeImpl(DataRefImpl DRI) const { in getCommonSymbolSizeImpl()
1776 MachOObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
1799 uint32_t MachOObjectFile::getSymbolFlags(DataRefImpl DRI) const { in getSymbolFlags()
1839 MachOObjectFile::getSymbolSection(DataRefImpl Symb) const { in getSymbolSection()
1854 unsigned MachOObjectFile::getSymbolSectionID(SymbolRef Sym) const { in getSymbolSectionID()
1860 void MachOObjectFile::moveSectionNext(DataRefImpl &Sec) const { in moveSectionNext()
1864 std::error_code MachOObjectFile::getSectionName(DataRefImpl Sec, in getSectionName()
1871 uint64_t MachOObjectFile::getSectionAddress(DataRefImpl Sec) const { in getSectionAddress()
1877 uint64_t MachOObjectFile::getSectionIndex(DataRefImpl Sec) const { in getSectionIndex()
1881 uint64_t MachOObjectFile::getSectionSize(DataRefImpl Sec) const { in getSectionSize()
1910 std::error_code MachOObjectFile::getSectionContents(DataRefImpl Sec, in getSectionContents()
1929 uint64_t MachOObjectFile::getSectionAlignment(DataRefImpl Sec) const { in getSectionAlignment()
1942 Expected<SectionRef> MachOObjectFile::getSection(unsigned SectionIndex) const { in getSection()
1951 Expected<SectionRef> MachOObjectFile::getSection(StringRef SectionName) const { in getSection()
1963 bool MachOObjectFile::isSectionCompressed(DataRefImpl Sec) const { in isSectionCompressed()
1967 bool MachOObjectFile::isSectionText(DataRefImpl Sec) const { in isSectionText()
1972 bool MachOObjectFile::isSectionData(DataRefImpl Sec) const { in isSectionData()
1980 bool MachOObjectFile::isSectionBSS(DataRefImpl Sec) const { in isSectionBSS()
1988 unsigned MachOObjectFile::getSectionID(SectionRef Sec) const { in getSectionID()
1992 bool MachOObjectFile::isSectionVirtual(DataRefImpl Sec) const { in isSectionVirtual()
1999 bool MachOObjectFile::isSectionBitcode(DataRefImpl Sec) const { in isSectionBitcode()
2007 bool MachOObjectFile::isSectionStripped(DataRefImpl Sec) const { in isSectionStripped()
2013 relocation_iterator MachOObjectFile::section_rel_begin(DataRefImpl Sec) const { in section_rel_begin()
2021 MachOObjectFile::section_rel_end(DataRefImpl Sec) const { in section_rel_end()
2037 relocation_iterator MachOObjectFile::extrel_begin() const { in extrel_begin()
2045 relocation_iterator MachOObjectFile::extrel_end() const { in extrel_end()
2054 relocation_iterator MachOObjectFile::locrel_begin() const { in locrel_begin()
2062 relocation_iterator MachOObjectFile::locrel_end() const { in locrel_end()
2071 void MachOObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext()
2075 uint64_t MachOObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset()
2084 MachOObjectFile::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol()
2105 MachOObjectFile::getRelocationSection(DataRefImpl Rel) const { in getRelocationSection()
2109 uint64_t MachOObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType()
2114 void MachOObjectFile::getRelocationTypeName( in getRelocationTypeName()
2223 uint8_t MachOObjectFile::getRelocationLength(DataRefImpl Rel) const { in getRelocationLength()
2256 StringRef MachOObjectFile::guessLibraryShortName(StringRef Name, in guessLibraryShortName()
2375 std::error_code MachOObjectFile::getLibraryShortNameByIndex(unsigned Index, in getLibraryShortNameByIndex()
2406 uint32_t MachOObjectFile::getLibraryCount() const { in getLibraryCount()
2411 MachOObjectFile::getRelocationRelocatedSection(relocation_iterator Rel) const { in getRelocationRelocatedSection()
2417 basic_symbol_iterator MachOObjectFile::symbol_begin() const { in symbol_begin()
2426 basic_symbol_iterator MachOObjectFile::symbol_end() const { in symbol_end()
2441 symbol_iterator MachOObjectFile::getSymbolByIndex(unsigned Index) const { in getSymbolByIndex()
2453 uint64_t MachOObjectFile::getSymbolIndex(DataRefImpl Symb) const { in getSymbolIndex()
2465 section_iterator MachOObjectFile::section_begin() const { in section_begin()
2470 section_iterator MachOObjectFile::section_end() const { in section_end()
2476 uint8_t MachOObjectFile::getBytesInAddress() const { in getBytesInAddress()
2480 StringRef MachOObjectFile::getFileFormatName() const { in getFileFormatName()
2507 Triple::ArchType MachOObjectFile::getArch(uint32_t CPUType) { in getArch()
2526 Triple MachOObjectFile::getArchTriple(uint32_t CPUType, uint32_t CPUSubType, in getArchTriple()
2646 Triple MachOObjectFile::getHostArch() { in getHostArch()
2650 bool MachOObjectFile::isValidArch(StringRef ArchFlag) { in isValidArch()
2671 Triple::ArchType MachOObjectFile::getArch() const { in getArch()
2675 Triple MachOObjectFile::getArchTriple(const char **McpuDefault) const { in getArchTriple()
2679 relocation_iterator MachOObjectFile::section_rel_begin(unsigned Index) const { in section_rel_begin()
2685 relocation_iterator MachOObjectFile::section_rel_end(unsigned Index) const { in section_rel_end()
2691 dice_iterator MachOObjectFile::begin_dices() const { in begin_dices()
2701 dice_iterator MachOObjectFile::end_dices() const { in end_dices()
2712 ExportEntry::ExportEntry(Error *E, const MachOObjectFile *O, in ExportEntry()
3016 MachOObjectFile::exports(Error &E, ArrayRef<uint8_t> Trie, in exports()
3017 const MachOObjectFile *O) { in exports()
3030 iterator_range<export_iterator> MachOObjectFile::exports(Error &Err) const { in exports()
3034 MachORebaseEntry::MachORebaseEntry(Error *E, const MachOObjectFile *O, in MachORebaseEntry()
3402 MachOObjectFile::rebaseTable(Error &Err, MachOObjectFile *O, in rebaseTable()
3415 iterator_range<rebase_iterator> MachOObjectFile::rebaseTable(Error &Err) { in rebaseTable()
3419 MachOBindEntry::MachOBindEntry(Error *E, const MachOObjectFile *O, in MachOBindEntry()
3969 BindRebaseSegInfo::BindRebaseSegInfo(const object::MachOObjectFile *Obj) { in BindRebaseSegInfo()
4085 MachOObjectFile::bindTable(Error &Err, MachOObjectFile *O, in bindTable()
4099 iterator_range<bind_iterator> MachOObjectFile::bindTable(Error &Err) { in bindTable()
4104 iterator_range<bind_iterator> MachOObjectFile::lazyBindTable(Error &Err) { in lazyBindTable()
4109 iterator_range<bind_iterator> MachOObjectFile::weakBindTable(Error &Err) { in weakBindTable()
4114 MachOObjectFile::load_command_iterator
4115 MachOObjectFile::begin_load_commands() const { in begin_load_commands()
4119 MachOObjectFile::load_command_iterator
4120 MachOObjectFile::end_load_commands() const { in end_load_commands()
4124 iterator_range<MachOObjectFile::load_command_iterator>
4125 MachOObjectFile::load_commands() const { in load_commands()
4130 MachOObjectFile::getSectionFinalSegmentName(DataRefImpl Sec) const { in getSectionFinalSegmentName()
4136 MachOObjectFile::getSectionRawName(DataRefImpl Sec) const { in getSectionRawName()
4144 MachOObjectFile::getSectionRawFinalSegmentName(DataRefImpl Sec) const { in getSectionRawFinalSegmentName()
4152 MachOObjectFile::isRelocationScattered(const MachO::any_relocation_info &RE) in isRelocationScattered()
4159 unsigned MachOObjectFile::getPlainRelocationSymbolNum( in getPlainRelocationSymbolNum()
4166 bool MachOObjectFile::getPlainRelocationExternal( in getPlainRelocationExternal()
4173 bool MachOObjectFile::getScatteredRelocationScattered( in getScatteredRelocationScattered()
4178 uint32_t MachOObjectFile::getScatteredRelocationValue( in getScatteredRelocationValue()
4183 uint32_t MachOObjectFile::getScatteredRelocationType( in getScatteredRelocationType()
4188 unsigned MachOObjectFile::getAnyRelocationAddress( in getAnyRelocationAddress()
4195 unsigned MachOObjectFile::getAnyRelocationPCRel( in getAnyRelocationPCRel()
4202 unsigned MachOObjectFile::getAnyRelocationLength( in getAnyRelocationLength()
4210 MachOObjectFile::getAnyRelocationType( in getAnyRelocationType()
4218 MachOObjectFile::getAnyRelocationSection( in getAnyRelocationSection()
4230 MachO::section MachOObjectFile::getSection(DataRefImpl DRI) const { in getSection()
4235 MachO::section_64 MachOObjectFile::getSection64(DataRefImpl DRI) const { in getSection64()
4240 MachO::section MachOObjectFile::getSection(const LoadCommandInfo &L, in getSection()
4246 MachO::section_64 MachOObjectFile::getSection64(const LoadCommandInfo &L, in getSection64()
4253 MachOObjectFile::getSymbolTableEntry(DataRefImpl DRI) const { in getSymbolTableEntry()
4259 MachOObjectFile::getSymbol64TableEntry(DataRefImpl DRI) const { in getSymbol64TableEntry()
4265 MachOObjectFile::getLinkeditDataLoadCommand(const LoadCommandInfo &L) const { in getLinkeditDataLoadCommand()
4270 MachOObjectFile::getSegmentLoadCommand(const LoadCommandInfo &L) const { in getSegmentLoadCommand()
4275 MachOObjectFile::getSegment64LoadCommand(const LoadCommandInfo &L) const { in getSegment64LoadCommand()
4280 MachOObjectFile::getLinkerOptionLoadCommand(const LoadCommandInfo &L) const { in getLinkerOptionLoadCommand()
4285 MachOObjectFile::getVersionMinLoadCommand(const LoadCommandInfo &L) const { in getVersionMinLoadCommand()
4290 MachOObjectFile::getNoteLoadCommand(const LoadCommandInfo &L) const { in getNoteLoadCommand()
4295 MachOObjectFile::getBuildVersionLoadCommand(const LoadCommandInfo &L) const { in getBuildVersionLoadCommand()
4300 MachOObjectFile::getBuildToolVersion(unsigned index) const { in getBuildToolVersion()
4305 MachOObjectFile::getDylibIDLoadCommand(const LoadCommandInfo &L) const { in getDylibIDLoadCommand()
4310 MachOObjectFile::getDyldInfoLoadCommand(const LoadCommandInfo &L) const { in getDyldInfoLoadCommand()
4315 MachOObjectFile::getDylinkerCommand(const LoadCommandInfo &L) const { in getDylinkerCommand()
4320 MachOObjectFile::getUuidCommand(const LoadCommandInfo &L) const { in getUuidCommand()
4325 MachOObjectFile::getRpathCommand(const LoadCommandInfo &L) const { in getRpathCommand()
4330 MachOObjectFile::getSourceVersionCommand(const LoadCommandInfo &L) const { in getSourceVersionCommand()
4335 MachOObjectFile::getEntryPointCommand(const LoadCommandInfo &L) const { in getEntryPointCommand()
4340 MachOObjectFile::getEncryptionInfoCommand(const LoadCommandInfo &L) const { in getEncryptionInfoCommand()
4345 MachOObjectFile::getEncryptionInfoCommand64(const LoadCommandInfo &L) const { in getEncryptionInfoCommand64()
4350 MachOObjectFile::getSubFrameworkCommand(const LoadCommandInfo &L) const { in getSubFrameworkCommand()
4355 MachOObjectFile::getSubUmbrellaCommand(const LoadCommandInfo &L) const { in getSubUmbrellaCommand()
4360 MachOObjectFile::getSubLibraryCommand(const LoadCommandInfo &L) const { in getSubLibraryCommand()
4365 MachOObjectFile::getSubClientCommand(const LoadCommandInfo &L) const { in getSubClientCommand()
4370 MachOObjectFile::getRoutinesCommand(const LoadCommandInfo &L) const { in getRoutinesCommand()
4375 MachOObjectFile::getRoutinesCommand64(const LoadCommandInfo &L) const { in getRoutinesCommand64()
4380 MachOObjectFile::getThreadCommand(const LoadCommandInfo &L) const { in getThreadCommand()
4385 MachOObjectFile::getRelocation(DataRefImpl Rel) const { in getRelocation()
4412 MachOObjectFile::getDice(DataRefImpl Rel) const { in getDice()
4417 const MachO::mach_header &MachOObjectFile::getHeader() const { in getHeader()
4421 const MachO::mach_header_64 &MachOObjectFile::getHeader64() const { in getHeader64()
4426 uint32_t MachOObjectFile::getIndirectSymbolTableEntry( in getIndirectSymbolTableEntry()
4434 MachOObjectFile::getDataInCodeTableEntry(uint32_t DataOffset, in getDataInCodeTableEntry()
4440 MachO::symtab_command MachOObjectFile::getSymtabLoadCommand() const { in getSymtabLoadCommand()
4455 MachO::dysymtab_command MachOObjectFile::getDysymtabLoadCommand() const { in getDysymtabLoadCommand()
4485 MachOObjectFile::getDataInCodeLoadCommand() const { in getDataInCodeLoadCommand()
4499 MachOObjectFile::getLinkOptHintsLoadCommand() const { in getLinkOptHintsLoadCommand()
4513 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoRebaseOpcodes() const { in getDyldInfoRebaseOpcodes()
4524 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoBindOpcodes() const { in getDyldInfoBindOpcodes()
4535 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoWeakBindOpcodes() const { in getDyldInfoWeakBindOpcodes()
4546 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoLazyBindOpcodes() const { in getDyldInfoLazyBindOpcodes()
4557 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoExportsTrie() const { in getDyldInfoExportsTrie()
4568 ArrayRef<uint8_t> MachOObjectFile::getUuid() const { in getUuid()
4576 StringRef MachOObjectFile::getStringTableData() const { in getStringTableData()
4581 bool MachOObjectFile::is64Bit() const { in is64Bit()
4586 void MachOObjectFile::ReadULEB128s(uint64_t Index, in ReadULEB128s()
4598 bool MachOObjectFile::isRelocatableObject() const { in isRelocatableObject()
4602 Expected<std::unique_ptr<MachOObjectFile>>
4608 return MachOObjectFile::create(Buffer, false, false, in createMachOObjectFile()
4611 return MachOObjectFile::create(Buffer, true, false, in createMachOObjectFile()
4614 return MachOObjectFile::create(Buffer, false, true, in createMachOObjectFile()
4617 return MachOObjectFile::create(Buffer, true, true, in createMachOObjectFile()
4623 StringRef MachOObjectFile::mapDebugSectionName(StringRef Name) const { in mapDebugSectionName()