• Home
  • Raw
  • Download

Lines Matching refs:MachO

50     MachO::swapStruct(Cmd);  in getStruct()
79 MachO::segment_command_64 S = O->getSegment64LoadCommand(L); in isPageZeroSegment()
82 MachO::segment_command S = O->getSegmentLoadCommand(L); in isPageZeroSegment()
93 unsigned SegmentLoadSize = Is64 ? sizeof(MachO::segment_command_64) : in getSectionPtr()
94 sizeof(MachO::segment_command); in getSectionPtr()
95 unsigned SectionSize = Is64 ? sizeof(MachO::section_64) : in getSectionPtr()
96 sizeof(MachO::section); in getSectionPtr()
106 static MachO::nlist_base
109 return getStruct<MachO::nlist_base>(O, P); in getSymbolTableEntryBase()
132 const MachO::any_relocation_info &RE, in printRelocationTargetName()
196 getPlainRelocationAddress(const MachO::any_relocation_info &RE) { in getPlainRelocationAddress()
201 getScatteredRelocationAddress(const MachO::any_relocation_info &RE) { in getScatteredRelocationAddress()
206 const MachO::any_relocation_info &RE) { in getPlainRelocationPCRel()
214 const MachO::any_relocation_info &RE) { in getScatteredRelocationPCRel()
219 const MachO::any_relocation_info &RE) { in getPlainRelocationLength()
226 getScatteredRelocationLength(const MachO::any_relocation_info &RE) { in getScatteredRelocationLength()
231 const MachO::any_relocation_info &RE) { in getPlainRelocationType()
240 MachO::section_64 Sect = O->getSection64(Sec); in getSectionFlags()
243 MachO::section Sect = O->getSection(Sec); in getSectionFlags()
258 MachO::LoadCommandType SegmentLoadType = is64Bit() ? in MachOObjectFile()
259 MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT; in MachOObjectFile()
263 if (Load.C.cmd == MachO::LC_SYMTAB) { in MachOObjectFile()
270 } else if (Load.C.cmd == MachO::LC_DYSYMTAB) { in MachOObjectFile()
277 } else if (Load.C.cmd == MachO::LC_DATA_IN_CODE) { in MachOObjectFile()
284 } else if (Load.C.cmd == MachO::LC_LINKER_OPTIMIZATION_HINT) { in MachOObjectFile()
291 } else if (Load.C.cmd == MachO::LC_DYLD_INFO || in MachOObjectFile()
292 Load.C.cmd == MachO::LC_DYLD_INFO_ONLY) { in MachOObjectFile()
299 } else if (Load.C.cmd == MachO::LC_UUID) { in MachOObjectFile()
308 ? sizeof(MachO::segment_command_64) in MachOObjectFile()
309 : sizeof(MachO::segment_command); in MachOObjectFile()
320 } else if (Load.C.cmd == MachO::LC_LOAD_DYLIB || in MachOObjectFile()
321 Load.C.cmd == MachO::LC_LOAD_WEAK_DYLIB || in MachOObjectFile()
322 Load.C.cmd == MachO::LC_LAZY_LOAD_DYLIB || in MachOObjectFile()
323 Load.C.cmd == MachO::LC_REEXPORT_DYLIB || in MachOObjectFile()
324 Load.C.cmd == MachO::LC_LOAD_UPWARD_DYLIB) { in MachOObjectFile()
337 sizeof(MachO::nlist_64) : in moveSymbolNext()
338 sizeof(MachO::nlist); in moveSymbolNext()
345 MachO::nlist_base Entry = getSymbolTableEntryBase(this, Symb); in getSymbolName()
357 return Flags & MachO::SECTION_TYPE; in getSectionType()
367 MachO::nlist_64 Entry = getSymbol64TableEntry(Symb); in getIndirectName()
369 if ((Entry.n_type & MachO::N_TYPE) != MachO::N_INDR) in getIndirectName()
372 MachO::nlist Entry = getSymbolTableEntry(Symb); in getIndirectName()
374 if ((Entry.n_type & MachO::N_TYPE) != MachO::N_INDR) in getIndirectName()
387 MachO::nlist_64 Entry = getSymbol64TableEntry(Symb); in getSymbolAddress()
388 if ((Entry.n_type & MachO::N_TYPE) == MachO::N_UNDF && in getSymbolAddress()
394 MachO::nlist Entry = getSymbolTableEntry(Symb); in getSymbolAddress()
395 if ((Entry.n_type & MachO::N_TYPE) == MachO::N_UNDF && in getSymbolAddress()
408 MachO::nlist_base Entry = getSymbolTableEntryBase(this, DRI); in getSymbolAlignment()
409 Result = 1 << MachO::GET_COMM_ALIGN(Entry.n_desc); in getSymbolAlignment()
422 MachO::nlist_base Entry = getSymbolTableEntryBase(this, DRI); in getSymbolSize()
466 MachO::nlist_base Entry = getSymbolTableEntryBase(this, Symb); in getSymbolType()
472 if (n_type & MachO::N_STAB) { in getSymbolType()
477 switch (n_type & MachO::N_TYPE) { in getSymbolType()
478 case MachO::N_UNDF : in getSymbolType()
481 case MachO::N_SECT : in getSymbolType()
489 MachO::nlist_base Entry = getSymbolTableEntryBase(this, DRI); in getSymbolFlags()
496 if ((MachOType & MachO::N_TYPE) == MachO::N_UNDF) in getSymbolFlags()
499 if ((MachOType & MachO::N_TYPE) == MachO::N_INDR) in getSymbolFlags()
502 if (MachOType & MachO::N_STAB) in getSymbolFlags()
505 if (MachOType & MachO::N_EXT) { in getSymbolFlags()
507 if ((MachOType & MachO::N_TYPE) == MachO::N_UNDF) { in getSymbolFlags()
514 if (!(MachOType & MachO::N_PEXT)) in getSymbolFlags()
518 if (MachOFlags & (MachO::N_WEAK_REF | MachO::N_WEAK_DEF)) in getSymbolFlags()
521 if (MachOFlags & (MachO::N_ARM_THUMB_DEF)) in getSymbolFlags()
524 if ((MachOType & MachO::N_TYPE) == MachO::N_ABS) in getSymbolFlags()
532 MachO::nlist_base Entry = getSymbolTableEntryBase(this, Symb); in getSymbolSection()
575 MachO::section_64 Sect = getSection64(Sec); in getSectionContents()
579 MachO::section Sect = getSection(Sec); in getSectionContents()
591 MachO::section_64 Sect = getSection64(Sec); in getSectionAlignment()
594 MachO::section Sect = getSection(Sec); in getSectionAlignment()
603 return Flags & MachO::S_ATTR_PURE_INSTRUCTIONS; in isSectionText()
608 unsigned SectionType = Flags & MachO::SECTION_TYPE; in isSectionData()
609 return !(Flags & MachO::S_ATTR_PURE_INSTRUCTIONS) && in isSectionData()
610 !(SectionType == MachO::S_ZEROFILL || in isSectionData()
611 SectionType == MachO::S_GB_ZEROFILL); in isSectionData()
616 unsigned SectionType = Flags & MachO::SECTION_TYPE; in isSectionBSS()
617 return !(Flags & MachO::S_ATTR_PURE_INSTRUCTIONS) && in isSectionBSS()
618 (SectionType == MachO::S_ZEROFILL || in isSectionBSS()
619 SectionType == MachO::S_GB_ZEROFILL); in isSectionBSS()
654 MachO::section_64 Sect = getSection64(Sec); in section_rel_end()
657 MachO::section Sect = getSection(Sec); in section_rel_end()
685 assert(getHeader().filetype == MachO::MH_OBJECT && in getRelocationOffset()
687 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationOffset()
694 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationSymbol()
703 MachO::symtab_command S = getSymtabLoadCommand(); in getRelocationSymbol()
705 sizeof(MachO::nlist_64) : in getRelocationSymbol()
706 sizeof(MachO::nlist); in getRelocationSymbol()
715 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationType()
835 MachO::any_relocation_info RE = getRelocation(Rel); in getRelocationValueString()
852 case MachO::X86_64_RELOC_GOT_LOAD: in getRelocationValueString()
853 case MachO::X86_64_RELOC_GOT: { in getRelocationValueString()
859 case MachO::X86_64_RELOC_SUBTRACTOR: { in getRelocationValueString()
862 MachO::any_relocation_info RENext = getRelocation(RelNext); in getRelocationValueString()
868 if (RType != MachO::X86_64_RELOC_UNSIGNED) in getRelocationValueString()
879 case MachO::X86_64_RELOC_TLV: in getRelocationValueString()
884 case MachO::X86_64_RELOC_SIGNED_1: in getRelocationValueString()
888 case MachO::X86_64_RELOC_SIGNED_2: in getRelocationValueString()
892 case MachO::X86_64_RELOC_SIGNED_4: in getRelocationValueString()
905 case MachO::GENERIC_RELOC_PAIR: // prints no info in getRelocationValueString()
907 case MachO::GENERIC_RELOC_SECTDIFF: { in getRelocationValueString()
910 MachO::any_relocation_info RENext = getRelocation(RelNext); in getRelocationValueString()
916 if (RType != MachO::GENERIC_RELOC_PAIR) in getRelocationValueString()
929 case MachO::GENERIC_RELOC_LOCAL_SECTDIFF: { in getRelocationValueString()
932 MachO::any_relocation_info RENext = getRelocation(RelNext); in getRelocationValueString()
937 if (RType != MachO::GENERIC_RELOC_PAIR) in getRelocationValueString()
946 case MachO::GENERIC_RELOC_TLV: { in getRelocationValueString()
957 case MachO::ARM_RELOC_HALF: in getRelocationValueString()
958 case MachO::ARM_RELOC_HALF_SECTDIFF: { in getRelocationValueString()
971 MachO::any_relocation_info RENext = getRelocation(RelNext); in getRelocationValueString()
976 if (RType != MachO::ARM_RELOC_PAIR) in getRelocationValueString()
987 if (Type == MachO::ARM_RELOC_HALF_SECTDIFF) { in getRelocationValueString()
1019 if (Type == MachO::GENERIC_RELOC_PAIR) Result = true; in getRelocationHidden()
1023 if (Type == MachO::X86_64_RELOC_UNSIGNED && Rel.d.a > 0) { in getRelocationHidden()
1028 if (PrevType == MachO::X86_64_RELOC_SUBTRACTOR) in getRelocationHidden()
1192 MachO::dylib_command D = in getLibraryShortNameByIndex()
1193 getStruct<MachO::dylib_command>(this, Libraries[i]); in getLibraryShortNameByIndex()
1223 MachO::symtab_command Symtab = getSymtabLoadCommand(); in symbol_end_impl()
1225 sizeof(MachO::nlist_64) : in symbol_end_impl()
1226 sizeof(MachO::nlist); in symbol_end_impl()
1238 MachO::symtab_command Symtab = getSymtabLoadCommand(); in getSymbolByIndex()
1242 is64Bit() ? sizeof(MachO::nlist_64) : sizeof(MachO::nlist); in getSymbolByIndex()
1267 case llvm::MachO::CPU_TYPE_I386: in getFileFormatName()
1269 case llvm::MachO::CPU_TYPE_ARM: in getFileFormatName()
1271 case llvm::MachO::CPU_TYPE_POWERPC: in getFileFormatName()
1279 case llvm::MachO::CPU_TYPE_X86_64: in getFileFormatName()
1281 case llvm::MachO::CPU_TYPE_ARM64: in getFileFormatName()
1283 case llvm::MachO::CPU_TYPE_POWERPC64: in getFileFormatName()
1292 case llvm::MachO::CPU_TYPE_I386: in getArch()
1294 case llvm::MachO::CPU_TYPE_X86_64: in getArch()
1296 case llvm::MachO::CPU_TYPE_ARM: in getArch()
1298 case llvm::MachO::CPU_TYPE_ARM64: in getArch()
1300 case llvm::MachO::CPU_TYPE_POWERPC: in getArch()
1302 case llvm::MachO::CPU_TYPE_POWERPC64: in getArch()
1315 case MachO::CPU_TYPE_I386: in getArch()
1316 switch (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) { in getArch()
1317 case MachO::CPU_SUBTYPE_I386_ALL: in getArch()
1322 case MachO::CPU_TYPE_X86_64: in getArch()
1323 switch (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) { in getArch()
1324 case MachO::CPU_SUBTYPE_X86_64_ALL: in getArch()
1326 case MachO::CPU_SUBTYPE_X86_64_H: in getArch()
1331 case MachO::CPU_TYPE_ARM: in getArch()
1332 switch (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) { in getArch()
1333 case MachO::CPU_SUBTYPE_ARM_V4T: in getArch()
1335 case MachO::CPU_SUBTYPE_ARM_V5TEJ: in getArch()
1337 case MachO::CPU_SUBTYPE_ARM_XSCALE: in getArch()
1339 case MachO::CPU_SUBTYPE_ARM_V6: in getArch()
1341 case MachO::CPU_SUBTYPE_ARM_V6M: in getArch()
1345 case MachO::CPU_SUBTYPE_ARM_V7: in getArch()
1347 case MachO::CPU_SUBTYPE_ARM_V7EM: in getArch()
1351 case MachO::CPU_SUBTYPE_ARM_V7K: in getArch()
1353 case MachO::CPU_SUBTYPE_ARM_V7M: in getArch()
1357 case MachO::CPU_SUBTYPE_ARM_V7S: in getArch()
1362 case MachO::CPU_TYPE_ARM64: in getArch()
1363 switch (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) { in getArch()
1364 case MachO::CPU_SUBTYPE_ARM64_ALL: in getArch()
1369 case MachO::CPU_TYPE_POWERPC: in getArch()
1370 switch (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) { in getArch()
1371 case MachO::CPU_SUBTYPE_POWERPC_ALL: in getArch()
1376 case MachO::CPU_TYPE_POWERPC64: in getArch()
1377 switch (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) { in getArch()
1378 case MachO::CPU_SUBTYPE_POWERPC_ALL: in getArch()
1394 case MachO::CPU_TYPE_ARM: in getThumbArch()
1395 switch (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) { in getThumbArch()
1396 case MachO::CPU_SUBTYPE_ARM_V4T: in getThumbArch()
1398 case MachO::CPU_SUBTYPE_ARM_V5TEJ: in getThumbArch()
1400 case MachO::CPU_SUBTYPE_ARM_XSCALE: in getThumbArch()
1402 case MachO::CPU_SUBTYPE_ARM_V6: in getThumbArch()
1404 case MachO::CPU_SUBTYPE_ARM_V6M: in getThumbArch()
1408 case MachO::CPU_SUBTYPE_ARM_V7: in getThumbArch()
1410 case MachO::CPU_SUBTYPE_ARM_V7EM: in getThumbArch()
1414 case MachO::CPU_SUBTYPE_ARM_V7K: in getThumbArch()
1416 case MachO::CPU_SUBTYPE_ARM_V7M: in getThumbArch()
1420 case MachO::CPU_SUBTYPE_ARM_V7S: in getThumbArch()
1471 MachO::mach_header_64 H_64; in getArch()
1477 MachO::mach_header H; in getArch()
1503 MachO::linkedit_data_command DicLC = getDataInCodeLoadCommand(); in begin_dices()
1513 MachO::linkedit_data_command DicLC = getDataInCodeLoadCommand(); in end_dices()
1602 if (State.Flags & MachO::EXPORT_SYMBOL_FLAGS_REEXPORT) { in pushNode()
1608 if (State.Flags & MachO::EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER) in pushNode()
1730 uint8_t ImmValue = Byte & MachO::REBASE_IMMEDIATE_MASK; in moveNext()
1731 uint8_t Opcode = Byte & MachO::REBASE_OPCODE_MASK; in moveNext()
1733 case MachO::REBASE_OPCODE_DONE: in moveNext()
1739 case MachO::REBASE_OPCODE_SET_TYPE_IMM: in moveNext()
1746 case MachO::REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB: in moveNext()
1756 case MachO::REBASE_OPCODE_ADD_ADDR_ULEB: in moveNext()
1763 case MachO::REBASE_OPCODE_ADD_ADDR_IMM_SCALED: in moveNext()
1770 case MachO::REBASE_OPCODE_DO_REBASE_IMM_TIMES: in moveNext()
1781 case MachO::REBASE_OPCODE_DO_REBASE_ULEB_TIMES: in moveNext()
1792 case MachO::REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB: in moveNext()
1803 case MachO::REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_ULEB: in moveNext()
1837 case MachO::REBASE_TYPE_POINTER: in typeName()
1839 case MachO::REBASE_TYPE_TEXT_ABSOLUTE32: in typeName()
1841 case MachO::REBASE_TYPE_TEXT_PCREL32: in typeName()
1904 uint8_t ImmValue = Byte & MachO::BIND_IMMEDIATE_MASK; in moveNext()
1905 uint8_t Opcode = Byte & MachO::BIND_OPCODE_MASK; in moveNext()
1909 case MachO::BIND_OPCODE_DONE: in moveNext()
1927 case MachO::BIND_OPCODE_SET_DYLIB_ORDINAL_IMM: in moveNext()
1934 case MachO::BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB: in moveNext()
1941 case MachO::BIND_OPCODE_SET_DYLIB_SPECIAL_IMM: in moveNext()
1943 SignExtended = MachO::BIND_OPCODE_MASK | ImmValue; in moveNext()
1952 case MachO::BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM: in moveNext()
1966 if (ImmValue & MachO::BIND_SYMBOL_FLAGS_NON_WEAK_DEFINITION) in moveNext()
1970 case MachO::BIND_OPCODE_SET_TYPE_IMM: in moveNext()
1977 case MachO::BIND_OPCODE_SET_ADDEND_SLEB: in moveNext()
1986 case MachO::BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB: in moveNext()
1996 case MachO::BIND_OPCODE_ADD_ADDR_ULEB: in moveNext()
2003 case MachO::BIND_OPCODE_DO_BIND: in moveNext()
2011 case MachO::BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB: in moveNext()
2024 case MachO::BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED: in moveNext()
2035 case MachO::BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB: in moveNext()
2083 case MachO::BIND_TYPE_POINTER: in typeName()
2085 case MachO::BIND_TYPE_TEXT_ABSOLUTE32: in typeName()
2087 case MachO::BIND_TYPE_TEXT_PCREL32: in typeName()
2161 MachOObjectFile::isRelocationScattered(const MachO::any_relocation_info &RE) in isRelocationScattered()
2163 if (getCPUType(this) == MachO::CPU_TYPE_X86_64) in isRelocationScattered()
2165 return getPlainRelocationAddress(RE) & MachO::R_SCATTERED; in isRelocationScattered()
2169 const MachO::any_relocation_info &RE) const { in getPlainRelocationSymbolNum()
2176 const MachO::any_relocation_info &RE) const { in getPlainRelocationExternal()
2183 const MachO::any_relocation_info &RE) const { in getScatteredRelocationScattered()
2188 const MachO::any_relocation_info &RE) const { in getScatteredRelocationValue()
2193 const MachO::any_relocation_info &RE) const { in getScatteredRelocationType()
2198 const MachO::any_relocation_info &RE) const { in getAnyRelocationAddress()
2205 const MachO::any_relocation_info &RE) const { in getAnyRelocationPCRel()
2212 const MachO::any_relocation_info &RE) const { in getAnyRelocationLength()
2220 const MachO::any_relocation_info &RE) const { in getAnyRelocationType()
2228 const MachO::any_relocation_info &RE) const { in getRelocationSection()
2241 unsigned HeaderSize = is64Bit() ? sizeof(MachO::mach_header_64) : in getFirstLoadCommandInfo()
2242 sizeof(MachO::mach_header); in getFirstLoadCommandInfo()
2244 Load.C = getStruct<MachO::load_command>(this, Load.Ptr); in getFirstLoadCommandInfo()
2254 Next.C = getStruct<MachO::load_command>(this, Next.Ptr); in getNextLoadCommandInfo()
2260 MachO::section MachOObjectFile::getSection(DataRefImpl DRI) const { in getSection()
2264 return getStruct<MachO::section>(this, Sections[DRI.d.a]); in getSection()
2267 MachO::section_64 MachOObjectFile::getSection64(DataRefImpl DRI) const { in getSection64()
2271 return getStruct<MachO::section_64>(this, Sections[DRI.d.a]); in getSection64()
2274 MachO::section MachOObjectFile::getSection(const LoadCommandInfo &L, in getSection()
2277 return getStruct<MachO::section>(this, Sec); in getSection()
2280 MachO::section_64 MachOObjectFile::getSection64(const LoadCommandInfo &L, in getSection64()
2283 return getStruct<MachO::section_64>(this, Sec); in getSection64()
2286 MachO::nlist
2289 return getStruct<MachO::nlist>(this, P); in getSymbolTableEntry()
2292 MachO::nlist_64
2295 return getStruct<MachO::nlist_64>(this, P); in getSymbol64TableEntry()
2298 MachO::linkedit_data_command
2300 return getStruct<MachO::linkedit_data_command>(this, L.Ptr); in getLinkeditDataLoadCommand()
2303 MachO::segment_command
2305 return getStruct<MachO::segment_command>(this, L.Ptr); in getSegmentLoadCommand()
2308 MachO::segment_command_64
2310 return getStruct<MachO::segment_command_64>(this, L.Ptr); in getSegment64LoadCommand()
2313 MachO::linker_option_command
2315 return getStruct<MachO::linker_option_command>(this, L.Ptr); in getLinkerOptionLoadCommand()
2318 MachO::version_min_command
2320 return getStruct<MachO::version_min_command>(this, L.Ptr); in getVersionMinLoadCommand()
2323 MachO::dylib_command
2325 return getStruct<MachO::dylib_command>(this, L.Ptr); in getDylibIDLoadCommand()
2328 MachO::dyld_info_command
2330 return getStruct<MachO::dyld_info_command>(this, L.Ptr); in getDyldInfoLoadCommand()
2333 MachO::dylinker_command
2335 return getStruct<MachO::dylinker_command>(this, L.Ptr); in getDylinkerCommand()
2338 MachO::uuid_command
2340 return getStruct<MachO::uuid_command>(this, L.Ptr); in getUuidCommand()
2343 MachO::rpath_command
2345 return getStruct<MachO::rpath_command>(this, L.Ptr); in getRpathCommand()
2348 MachO::source_version_command
2350 return getStruct<MachO::source_version_command>(this, L.Ptr); in getSourceVersionCommand()
2353 MachO::entry_point_command
2355 return getStruct<MachO::entry_point_command>(this, L.Ptr); in getEntryPointCommand()
2358 MachO::encryption_info_command
2360 return getStruct<MachO::encryption_info_command>(this, L.Ptr); in getEncryptionInfoCommand()
2363 MachO::encryption_info_command_64
2365 return getStruct<MachO::encryption_info_command_64>(this, L.Ptr); in getEncryptionInfoCommand64()
2368 MachO::sub_framework_command
2370 return getStruct<MachO::sub_framework_command>(this, L.Ptr); in getSubFrameworkCommand()
2373 MachO::sub_umbrella_command
2375 return getStruct<MachO::sub_umbrella_command>(this, L.Ptr); in getSubUmbrellaCommand()
2378 MachO::sub_library_command
2380 return getStruct<MachO::sub_library_command>(this, L.Ptr); in getSubLibraryCommand()
2383 MachO::sub_client_command
2385 return getStruct<MachO::sub_client_command>(this, L.Ptr); in getSubClientCommand()
2388 MachO::routines_command
2390 return getStruct<MachO::routines_command>(this, L.Ptr); in getRoutinesCommand()
2393 MachO::routines_command_64
2395 return getStruct<MachO::routines_command_64>(this, L.Ptr); in getRoutinesCommand64()
2398 MachO::thread_command
2400 return getStruct<MachO::thread_command>(this, L.Ptr); in getThreadCommand()
2403 MachO::any_relocation_info
2409 MachO::section_64 Sect = getSection64(Sec); in getRelocation()
2412 MachO::section Sect = getSection(Sec); in getRelocation()
2416 auto P = reinterpret_cast<const MachO::any_relocation_info *>( in getRelocation()
2418 return getStruct<MachO::any_relocation_info>( in getRelocation()
2422 MachO::data_in_code_entry
2425 return getStruct<MachO::data_in_code_entry>(this, P); in getDice()
2428 MachO::mach_header MachOObjectFile::getHeader() const { in getHeader()
2429 return getStruct<MachO::mach_header>(this, getPtr(this, 0)); in getHeader()
2432 MachO::mach_header_64 MachOObjectFile::getHeader64() const { in getHeader64()
2433 return getStruct<MachO::mach_header_64>(this, getPtr(this, 0)); in getHeader64()
2437 const MachO::dysymtab_command &DLC, in getIndirectSymbolTableEntry()
2443 MachO::data_in_code_entry
2446 uint64_t Offset = DataOffset + Index * sizeof(MachO::data_in_code_entry); in getDataInCodeTableEntry()
2447 return getStruct<MachO::data_in_code_entry>(this, getPtr(this, Offset)); in getDataInCodeTableEntry()
2450 MachO::symtab_command MachOObjectFile::getSymtabLoadCommand() const { in getSymtabLoadCommand()
2452 return getStruct<MachO::symtab_command>(this, SymtabLoadCmd); in getSymtabLoadCommand()
2455 MachO::symtab_command Cmd; in getSymtabLoadCommand()
2456 Cmd.cmd = MachO::LC_SYMTAB; in getSymtabLoadCommand()
2457 Cmd.cmdsize = sizeof(MachO::symtab_command); in getSymtabLoadCommand()
2465 MachO::dysymtab_command MachOObjectFile::getDysymtabLoadCommand() const { in getDysymtabLoadCommand()
2467 return getStruct<MachO::dysymtab_command>(this, DysymtabLoadCmd); in getDysymtabLoadCommand()
2470 MachO::dysymtab_command Cmd; in getDysymtabLoadCommand()
2471 Cmd.cmd = MachO::LC_DYSYMTAB; in getDysymtabLoadCommand()
2472 Cmd.cmdsize = sizeof(MachO::dysymtab_command); in getDysymtabLoadCommand()
2494 MachO::linkedit_data_command
2497 return getStruct<MachO::linkedit_data_command>(this, DataInCodeLoadCmd); in getDataInCodeLoadCommand()
2500 MachO::linkedit_data_command Cmd; in getDataInCodeLoadCommand()
2501 Cmd.cmd = MachO::LC_DATA_IN_CODE; in getDataInCodeLoadCommand()
2502 Cmd.cmdsize = sizeof(MachO::linkedit_data_command); in getDataInCodeLoadCommand()
2508 MachO::linkedit_data_command
2511 return getStruct<MachO::linkedit_data_command>(this, LinkOptHintsLoadCmd); in getLinkOptHintsLoadCommand()
2515 MachO::linkedit_data_command Cmd; in getLinkOptHintsLoadCommand()
2516 Cmd.cmd = MachO::LC_LINKER_OPTIMIZATION_HINT; in getLinkOptHintsLoadCommand()
2517 Cmd.cmdsize = sizeof(MachO::linkedit_data_command); in getLinkOptHintsLoadCommand()
2527 MachO::dyld_info_command DyldInfo in getDyldInfoRebaseOpcodes()
2528 = getStruct<MachO::dyld_info_command>(this, DyldInfoLoadCmd); in getDyldInfoRebaseOpcodes()
2538 MachO::dyld_info_command DyldInfo in getDyldInfoBindOpcodes()
2539 = getStruct<MachO::dyld_info_command>(this, DyldInfoLoadCmd); in getDyldInfoBindOpcodes()
2549 MachO::dyld_info_command DyldInfo in getDyldInfoWeakBindOpcodes()
2550 = getStruct<MachO::dyld_info_command>(this, DyldInfoLoadCmd); in getDyldInfoWeakBindOpcodes()
2560 MachO::dyld_info_command DyldInfo in getDyldInfoLazyBindOpcodes()
2561 = getStruct<MachO::dyld_info_command>(this, DyldInfoLoadCmd); in getDyldInfoLazyBindOpcodes()
2571 MachO::dyld_info_command DyldInfo in getDyldInfoExportsTrie()
2572 = getStruct<MachO::dyld_info_command>(this, DyldInfoLoadCmd); in getDyldInfoExportsTrie()
2582 const char *Ptr = UuidLoadCmd + offsetof(MachO::uuid_command, uuid); in getUuid()
2587 MachO::symtab_command S = getSymtabLoadCommand(); in getStringTableData()
2609 return getHeader().filetype == MachO::MH_OBJECT; in isRelocatableObject()