Lines Matching refs:MachOObjectFile

67 static T getStruct(const MachOObjectFile &O, const char *P) {  in getStruct()
80 static Expected<T> getStructOrErr(const MachOObjectFile &O, const char *P) { in getStructOrErr()
93 getSectionPtr(const MachOObjectFile &O, MachOObjectFile::LoadCommandInfo L, in getSectionPtr()
107 static const char *getPtr(const MachOObjectFile &O, size_t Offset) { in getPtr()
113 getSymbolTableEntryBase(const MachOObjectFile &O, DataRefImpl DRI) { in getSymbolTableEntryBase()
126 static unsigned getCPUType(const MachOObjectFile &O) { in getCPUType()
130 static unsigned getCPUSubType(const MachOObjectFile &O) { in getCPUSubType()
144 static bool getPlainRelocationPCRel(const MachOObjectFile &O, in getPlainRelocationPCRel()
156 static unsigned getPlainRelocationLength(const MachOObjectFile &O, in getPlainRelocationLength()
168 static unsigned getPlainRelocationType(const MachOObjectFile &O, in getPlainRelocationType()
175 static uint32_t getSectionFlags(const MachOObjectFile &O, in getSectionFlags()
185 static Expected<MachOObjectFile::LoadCommandInfo>
186 getLoadCommandInfo(const MachOObjectFile &Obj, const char *Ptr, in getLoadCommandInfo()
195 return MachOObjectFile::LoadCommandInfo({Ptr, *CmdOrErr}); in getLoadCommandInfo()
200 static Expected<MachOObjectFile::LoadCommandInfo>
201 getFirstLoadCommandInfo(const MachOObjectFile &Obj) { in getFirstLoadCommandInfo()
210 static Expected<MachOObjectFile::LoadCommandInfo>
211 getNextLoadCommandInfo(const MachOObjectFile &Obj, uint32_t LoadCommandIndex, in getNextLoadCommandInfo()
212 const MachOObjectFile::LoadCommandInfo &L) { in getNextLoadCommandInfo()
223 static void parseHeader(const MachOObjectFile &Obj, T &Header, in parseHeader()
277 const MachOObjectFile &Obj, const MachOObjectFile::LoadCommandInfo &Load, in parseSegmentLoadCommand()
400 static Error checkSymtabCommand(const MachOObjectFile &Obj, in checkSymtabCommand()
401 const MachOObjectFile::LoadCommandInfo &Load, in checkSymtabCommand()
458 static Error checkDysymtabCommand(const MachOObjectFile &Obj, in checkDysymtabCommand()
459 const MachOObjectFile::LoadCommandInfo &Load, in checkDysymtabCommand()
591 static Error checkLinkeditDataCommand(const MachOObjectFile &Obj, in checkLinkeditDataCommand()
592 const MachOObjectFile::LoadCommandInfo &Load, in checkLinkeditDataCommand()
629 static Error checkDyldInfoCommand(const MachOObjectFile &Obj, in checkDyldInfoCommand()
630 const MachOObjectFile::LoadCommandInfo &Load, in checkDyldInfoCommand()
728 static Error checkDylibCommand(const MachOObjectFile &Obj, in checkDylibCommand()
729 const MachOObjectFile::LoadCommandInfo &Load, in checkDylibCommand()
760 static Error checkDylibIdCommand(const MachOObjectFile &Obj, in checkDylibIdCommand()
761 const MachOObjectFile::LoadCommandInfo &Load, in checkDylibIdCommand()
777 static Error checkDyldCommand(const MachOObjectFile &Obj, in checkDyldCommand()
778 const MachOObjectFile::LoadCommandInfo &Load, in checkDyldCommand()
809 static Error checkVersCommand(const MachOObjectFile &Obj, in checkVersCommand()
810 const MachOObjectFile::LoadCommandInfo &Load, in checkVersCommand()
824 static Error checkNoteCommand(const MachOObjectFile &Obj, in checkNoteCommand()
825 const MachOObjectFile::LoadCommandInfo &Load, in checkNoteCommand()
853 parseBuildVersionCommand(const MachOObjectFile &Obj, in parseBuildVersionCommand()
854 const MachOObjectFile::LoadCommandInfo &Load, in parseBuildVersionCommand()
876 static Error checkRpathCommand(const MachOObjectFile &Obj, in checkRpathCommand()
877 const MachOObjectFile::LoadCommandInfo &Load, in checkRpathCommand()
908 static Error checkEncryptCommand(const MachOObjectFile &Obj, in checkEncryptCommand()
909 const MachOObjectFile::LoadCommandInfo &Load, in checkEncryptCommand()
932 static Error checkLinkerOptCommand(const MachOObjectFile &Obj, in checkLinkerOptCommand()
933 const MachOObjectFile::LoadCommandInfo &Load, in checkLinkerOptCommand()
972 static Error checkSubCommand(const MachOObjectFile &Obj, in checkSubCommand()
973 const MachOObjectFile::LoadCommandInfo &Load, in checkSubCommand()
999 static Error checkThreadCommand(const MachOObjectFile &Obj, in checkThreadCommand()
1000 const MachOObjectFile::LoadCommandInfo &Load, in checkThreadCommand()
1190 static Error checkTwoLevelHintsCommand(const MachOObjectFile &Obj, in checkTwoLevelHintsCommand()
1191 const MachOObjectFile::LoadCommandInfo in checkTwoLevelHintsCommand()
1243 Expected<std::unique_ptr<MachOObjectFile>>
1244 MachOObjectFile::create(MemoryBufferRef Object, bool IsLittleEndian, in create()
1248 std::unique_ptr<MachOObjectFile> Obj( in create()
1249 new MachOObjectFile(std::move(Object), IsLittleEndian, in create()
1257 MachOObjectFile::MachOObjectFile(MemoryBufferRef Object, bool IsLittleEndian, in MachOObjectFile() function in MachOObjectFile
1680 Error MachOObjectFile::checkSymbolTable() const { in checkSymbolTable()
1683 MachO::mach_header_64 H_64 = MachOObjectFile::getHeader64(); in checkSymbolTable()
1686 MachO::mach_header H = MachOObjectFile::getHeader(); in checkSymbolTable()
1747 void MachOObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
1754 Expected<StringRef> MachOObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
1769 unsigned MachOObjectFile::getSectionType(SectionRef Sec) const { in getSectionType()
1775 uint64_t MachOObjectFile::getNValue(DataRefImpl Sym) const { in getNValue()
1786 std::error_code MachOObjectFile::getIndirectName(DataRefImpl Symb, in getIndirectName()
1800 uint64_t MachOObjectFile::getSymbolValueImpl(DataRefImpl Sym) const { in getSymbolValueImpl()
1804 Expected<uint64_t> MachOObjectFile::getSymbolAddress(DataRefImpl Sym) const { in getSymbolAddress()
1808 uint32_t MachOObjectFile::getSymbolAlignment(DataRefImpl DRI) const { in getSymbolAlignment()
1817 uint64_t MachOObjectFile::getCommonSymbolSizeImpl(DataRefImpl DRI) const { in getCommonSymbolSizeImpl()
1822 MachOObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
1847 Expected<uint32_t> MachOObjectFile::getSymbolFlags(DataRefImpl DRI) const { in getSymbolFlags()
1887 MachOObjectFile::getSymbolSection(DataRefImpl Symb) const { in getSymbolSection()
1902 unsigned MachOObjectFile::getSymbolSectionID(SymbolRef Sym) const { in getSymbolSectionID()
1908 void MachOObjectFile::moveSectionNext(DataRefImpl &Sec) const { in moveSectionNext()
1912 Expected<StringRef> MachOObjectFile::getSectionName(DataRefImpl Sec) const { in getSectionName()
1917 uint64_t MachOObjectFile::getSectionAddress(DataRefImpl Sec) const { in getSectionAddress()
1923 uint64_t MachOObjectFile::getSectionIndex(DataRefImpl Sec) const { in getSectionIndex()
1927 uint64_t MachOObjectFile::getSectionSize(DataRefImpl Sec) const { in getSectionSize()
1956 ArrayRef<uint8_t> MachOObjectFile::getSectionContents(uint32_t Offset, in getSectionContents()
1962 MachOObjectFile::getSectionContents(DataRefImpl Sec) const { in getSectionContents()
1979 uint64_t MachOObjectFile::getSectionAlignment(DataRefImpl Sec) const { in getSectionAlignment()
1992 Expected<SectionRef> MachOObjectFile::getSection(unsigned SectionIndex) const { in getSection()
2001 Expected<SectionRef> MachOObjectFile::getSection(StringRef SectionName) const { in getSection()
2012 bool MachOObjectFile::isSectionCompressed(DataRefImpl Sec) const { in isSectionCompressed()
2016 bool MachOObjectFile::isSectionText(DataRefImpl Sec) const { in isSectionText()
2021 bool MachOObjectFile::isSectionData(DataRefImpl Sec) const { in isSectionData()
2029 bool MachOObjectFile::isSectionBSS(DataRefImpl Sec) const { in isSectionBSS()
2037 bool MachOObjectFile::isDebugSection(DataRefImpl Sec) const { in isDebugSection()
2051 unsigned MachOObjectFile::getSectionID(SectionRef Sec) const { in getSectionID()
2055 bool MachOObjectFile::isSectionVirtual(DataRefImpl Sec) const { in isSectionVirtual()
2062 bool MachOObjectFile::isSectionBitcode(DataRefImpl Sec) const { in isSectionBitcode()
2069 bool MachOObjectFile::isSectionStripped(DataRefImpl Sec) const { in isSectionStripped()
2075 relocation_iterator MachOObjectFile::section_rel_begin(DataRefImpl Sec) const { in section_rel_begin()
2083 MachOObjectFile::section_rel_end(DataRefImpl Sec) const { in section_rel_end()
2099 relocation_iterator MachOObjectFile::extrel_begin() const { in extrel_begin()
2107 relocation_iterator MachOObjectFile::extrel_end() const { in extrel_end()
2116 relocation_iterator MachOObjectFile::locrel_begin() const { in locrel_begin()
2124 relocation_iterator MachOObjectFile::locrel_end() const { in locrel_end()
2133 void MachOObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext()
2137 uint64_t MachOObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset()
2146 MachOObjectFile::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol()
2167 MachOObjectFile::getRelocationSection(DataRefImpl Rel) const { in getRelocationSection()
2171 uint64_t MachOObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType()
2176 void MachOObjectFile::getRelocationTypeName( in getRelocationTypeName()
2286 uint8_t MachOObjectFile::getRelocationLength(DataRefImpl Rel) const { in getRelocationLength()
2327 StringRef MachOObjectFile::guessLibraryShortName(StringRef Name, in guessLibraryShortName()
2453 std::error_code MachOObjectFile::getLibraryShortNameByIndex(unsigned Index, in getLibraryShortNameByIndex()
2487 uint32_t MachOObjectFile::getLibraryCount() const { in getLibraryCount()
2492 MachOObjectFile::getRelocationRelocatedSection(relocation_iterator Rel) const { in getRelocationRelocatedSection()
2498 basic_symbol_iterator MachOObjectFile::symbol_begin() const { in symbol_begin()
2507 basic_symbol_iterator MachOObjectFile::symbol_end() const { in symbol_end()
2522 symbol_iterator MachOObjectFile::getSymbolByIndex(unsigned Index) const { in getSymbolByIndex()
2534 uint64_t MachOObjectFile::getSymbolIndex(DataRefImpl Symb) const { in getSymbolIndex()
2546 section_iterator MachOObjectFile::section_begin() const { in section_begin()
2551 section_iterator MachOObjectFile::section_end() const { in section_end()
2557 uint8_t MachOObjectFile::getBytesInAddress() const { in getBytesInAddress()
2561 StringRef MachOObjectFile::getFileFormatName() const { in getFileFormatName()
2590 Triple::ArchType MachOObjectFile::getArch(uint32_t CPUType, uint32_t CPUSubType) { in getArch()
2611 Triple MachOObjectFile::getArchTriple(uint32_t CPUType, uint32_t CPUSubType, in getArchTriple()
2748 Triple MachOObjectFile::getHostArch() { in getHostArch()
2752 bool MachOObjectFile::isValidArch(StringRef ArchFlag) { in isValidArch()
2757 ArrayRef<StringRef> MachOObjectFile::getValidArchs() { in getValidArchs()
2782 Triple::ArchType MachOObjectFile::getArch() const { in getArch()
2786 Triple MachOObjectFile::getArchTriple(const char **McpuDefault) const { in getArchTriple()
2790 relocation_iterator MachOObjectFile::section_rel_begin(unsigned Index) const { in section_rel_begin()
2796 relocation_iterator MachOObjectFile::section_rel_end(unsigned Index) const { in section_rel_end()
2802 dice_iterator MachOObjectFile::begin_dices() const { in begin_dices()
2812 dice_iterator MachOObjectFile::end_dices() const { in end_dices()
2823 ExportEntry::ExportEntry(Error *E, const MachOObjectFile *O, in ExportEntry()
3127 MachOObjectFile::exports(Error &E, ArrayRef<uint8_t> Trie, in exports()
3128 const MachOObjectFile *O) { in exports()
3141 iterator_range<export_iterator> MachOObjectFile::exports(Error &Err) const { in exports()
3145 MachORebaseEntry::MachORebaseEntry(Error *E, const MachOObjectFile *O, in MachORebaseEntry()
3465 MachOObjectFile::rebaseTable(Error &Err, MachOObjectFile *O, in rebaseTable()
3478 iterator_range<rebase_iterator> MachOObjectFile::rebaseTable(Error &Err) { in rebaseTable()
3482 MachOBindEntry::MachOBindEntry(Error *E, const MachOObjectFile *O, in MachOBindEntry()
4017 BindRebaseSegInfo::BindRebaseSegInfo(const object::MachOObjectFile *Obj) { in BindRebaseSegInfo()
4124 MachOObjectFile::bindTable(Error &Err, MachOObjectFile *O, in bindTable()
4138 iterator_range<bind_iterator> MachOObjectFile::bindTable(Error &Err) { in bindTable()
4143 iterator_range<bind_iterator> MachOObjectFile::lazyBindTable(Error &Err) { in lazyBindTable()
4148 iterator_range<bind_iterator> MachOObjectFile::weakBindTable(Error &Err) { in weakBindTable()
4153 MachOObjectFile::load_command_iterator
4154 MachOObjectFile::begin_load_commands() const { in begin_load_commands()
4158 MachOObjectFile::load_command_iterator
4159 MachOObjectFile::end_load_commands() const { in end_load_commands()
4163 iterator_range<MachOObjectFile::load_command_iterator>
4164 MachOObjectFile::load_commands() const { in load_commands()
4169 MachOObjectFile::getSectionFinalSegmentName(DataRefImpl Sec) const { in getSectionFinalSegmentName()
4175 MachOObjectFile::getSectionRawName(DataRefImpl Sec) const { in getSectionRawName()
4183 MachOObjectFile::getSectionRawFinalSegmentName(DataRefImpl Sec) const { in getSectionRawFinalSegmentName()
4191 MachOObjectFile::isRelocationScattered(const MachO::any_relocation_info &RE) in isRelocationScattered()
4198 unsigned MachOObjectFile::getPlainRelocationSymbolNum( in getPlainRelocationSymbolNum()
4205 bool MachOObjectFile::getPlainRelocationExternal( in getPlainRelocationExternal()
4212 bool MachOObjectFile::getScatteredRelocationScattered( in getScatteredRelocationScattered()
4217 uint32_t MachOObjectFile::getScatteredRelocationValue( in getScatteredRelocationValue()
4222 uint32_t MachOObjectFile::getScatteredRelocationType( in getScatteredRelocationType()
4227 unsigned MachOObjectFile::getAnyRelocationAddress( in getAnyRelocationAddress()
4234 unsigned MachOObjectFile::getAnyRelocationPCRel( in getAnyRelocationPCRel()
4241 unsigned MachOObjectFile::getAnyRelocationLength( in getAnyRelocationLength()
4249 MachOObjectFile::getAnyRelocationType( in getAnyRelocationType()
4257 MachOObjectFile::getAnyRelocationSection( in getAnyRelocationSection()
4269 MachO::section MachOObjectFile::getSection(DataRefImpl DRI) const { in getSection()
4274 MachO::section_64 MachOObjectFile::getSection64(DataRefImpl DRI) const { in getSection64()
4279 MachO::section MachOObjectFile::getSection(const LoadCommandInfo &L, in getSection()
4285 MachO::section_64 MachOObjectFile::getSection64(const LoadCommandInfo &L, in getSection64()
4292 MachOObjectFile::getSymbolTableEntry(DataRefImpl DRI) const { in getSymbolTableEntry()
4298 MachOObjectFile::getSymbol64TableEntry(DataRefImpl DRI) const { in getSymbol64TableEntry()
4304 MachOObjectFile::getLinkeditDataLoadCommand(const LoadCommandInfo &L) const { in getLinkeditDataLoadCommand()
4309 MachOObjectFile::getSegmentLoadCommand(const LoadCommandInfo &L) const { in getSegmentLoadCommand()
4314 MachOObjectFile::getSegment64LoadCommand(const LoadCommandInfo &L) const { in getSegment64LoadCommand()
4319 MachOObjectFile::getLinkerOptionLoadCommand(const LoadCommandInfo &L) const { in getLinkerOptionLoadCommand()
4324 MachOObjectFile::getVersionMinLoadCommand(const LoadCommandInfo &L) const { in getVersionMinLoadCommand()
4329 MachOObjectFile::getNoteLoadCommand(const LoadCommandInfo &L) const { in getNoteLoadCommand()
4334 MachOObjectFile::getBuildVersionLoadCommand(const LoadCommandInfo &L) const { in getBuildVersionLoadCommand()
4339 MachOObjectFile::getBuildToolVersion(unsigned index) const { in getBuildToolVersion()
4344 MachOObjectFile::getDylibIDLoadCommand(const LoadCommandInfo &L) const { in getDylibIDLoadCommand()
4349 MachOObjectFile::getDyldInfoLoadCommand(const LoadCommandInfo &L) const { in getDyldInfoLoadCommand()
4354 MachOObjectFile::getDylinkerCommand(const LoadCommandInfo &L) const { in getDylinkerCommand()
4359 MachOObjectFile::getUuidCommand(const LoadCommandInfo &L) const { in getUuidCommand()
4364 MachOObjectFile::getRpathCommand(const LoadCommandInfo &L) const { in getRpathCommand()
4369 MachOObjectFile::getSourceVersionCommand(const LoadCommandInfo &L) const { in getSourceVersionCommand()
4374 MachOObjectFile::getEntryPointCommand(const LoadCommandInfo &L) const { in getEntryPointCommand()
4379 MachOObjectFile::getEncryptionInfoCommand(const LoadCommandInfo &L) const { in getEncryptionInfoCommand()
4384 MachOObjectFile::getEncryptionInfoCommand64(const LoadCommandInfo &L) const { in getEncryptionInfoCommand64()
4389 MachOObjectFile::getSubFrameworkCommand(const LoadCommandInfo &L) const { in getSubFrameworkCommand()
4394 MachOObjectFile::getSubUmbrellaCommand(const LoadCommandInfo &L) const { in getSubUmbrellaCommand()
4399 MachOObjectFile::getSubLibraryCommand(const LoadCommandInfo &L) const { in getSubLibraryCommand()
4404 MachOObjectFile::getSubClientCommand(const LoadCommandInfo &L) const { in getSubClientCommand()
4409 MachOObjectFile::getRoutinesCommand(const LoadCommandInfo &L) const { in getRoutinesCommand()
4414 MachOObjectFile::getRoutinesCommand64(const LoadCommandInfo &L) const { in getRoutinesCommand64()
4419 MachOObjectFile::getThreadCommand(const LoadCommandInfo &L) const { in getThreadCommand()
4424 MachOObjectFile::getRelocation(DataRefImpl Rel) const { in getRelocation()
4451 MachOObjectFile::getDice(DataRefImpl Rel) const { in getDice()
4456 const MachO::mach_header &MachOObjectFile::getHeader() const { in getHeader()
4460 const MachO::mach_header_64 &MachOObjectFile::getHeader64() const { in getHeader64()
4465 uint32_t MachOObjectFile::getIndirectSymbolTableEntry( in getIndirectSymbolTableEntry()
4473 MachOObjectFile::getDataInCodeTableEntry(uint32_t DataOffset, in getDataInCodeTableEntry()
4479 MachO::symtab_command MachOObjectFile::getSymtabLoadCommand() const { in getSymtabLoadCommand()
4494 MachO::dysymtab_command MachOObjectFile::getDysymtabLoadCommand() const { in getDysymtabLoadCommand()
4524 MachOObjectFile::getDataInCodeLoadCommand() const { in getDataInCodeLoadCommand()
4538 MachOObjectFile::getLinkOptHintsLoadCommand() const { in getLinkOptHintsLoadCommand()
4552 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoRebaseOpcodes() const { in getDyldInfoRebaseOpcodes()
4566 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoBindOpcodes() const { in getDyldInfoBindOpcodes()
4580 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoWeakBindOpcodes() const { in getDyldInfoWeakBindOpcodes()
4594 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoLazyBindOpcodes() const { in getDyldInfoLazyBindOpcodes()
4608 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoExportsTrie() const { in getDyldInfoExportsTrie()
4622 ArrayRef<uint8_t> MachOObjectFile::getUuid() const { in getUuid()
4630 StringRef MachOObjectFile::getStringTableData() const { in getStringTableData()
4635 bool MachOObjectFile::is64Bit() const { in is64Bit()
4640 void MachOObjectFile::ReadULEB128s(uint64_t Index, in ReadULEB128s()
4652 bool MachOObjectFile::isRelocatableObject() const { in isRelocatableObject()
4656 Expected<std::unique_ptr<MachOObjectFile>>
4662 return MachOObjectFile::create(Buffer, false, false, in createMachOObjectFile()
4665 return MachOObjectFile::create(Buffer, true, false, in createMachOObjectFile()
4668 return MachOObjectFile::create(Buffer, false, true, in createMachOObjectFile()
4671 return MachOObjectFile::create(Buffer, true, true, in createMachOObjectFile()
4677 StringRef MachOObjectFile::mapDebugSectionName(StringRef Name) const { in mapDebugSectionName()