Lines Matching refs:MachOOF
1711 static void DisassembleMachO(StringRef Filename, MachOObjectFile *MachOOF,
1908 static void ProcessMachO(StringRef Name, MachOObjectFile *MachOOF, in ProcessMachO() argument
1943 if (Error Err = MachOOF->checkSymbolTable()) in ProcessMachO()
1947 for (const SectionRef &Section : MachOOF->sections()) { in ProcessMachO()
1956 StringRef SegName = MachOOF->getSectionFinalSegmentName(Ref); in ProcessMachO()
1957 DisassembleMachO(FileName, MachOOF, SegName, SectName); in ProcessMachO()
1962 if (MachOOF->getHeader().filetype == MachO::MH_KEXT_BUNDLE && in ProcessMachO()
1963 MachOOF->getHeader().cputype == MachO::CPU_TYPE_ARM64) in ProcessMachO()
1964 DisassembleMachO(FileName, MachOOF, "__TEXT_EXEC", "__text"); in ProcessMachO()
1966 DisassembleMachO(FileName, MachOOF, "__TEXT", "__text"); in ProcessMachO()
1969 PrintIndirectSymbols(MachOOF, !NonVerbose); in ProcessMachO()
1971 PrintDataInCodeTable(MachOOF, !NonVerbose); in ProcessMachO()
1973 PrintLinkOptHints(MachOOF); in ProcessMachO()
1975 PrintRelocations(MachOOF, !NonVerbose); in ProcessMachO()
1977 printSectionHeaders(MachOOF); in ProcessMachO()
1979 printSectionContents(MachOOF); in ProcessMachO()
1981 DumpSectionContents(FileName, MachOOF, !NonVerbose); in ProcessMachO()
1983 DumpInfoPlistSectionContents(FileName, MachOOF); in ProcessMachO()
1985 PrintDylibs(MachOOF, false); in ProcessMachO()
1987 PrintDylibs(MachOOF, true); in ProcessMachO()
1989 printSymbolTable(MachOOF, ArchiveName, ArchitectureName); in ProcessMachO()
1991 printMachOUnwindInfo(MachOOF); in ProcessMachO()
1993 printMachOFileHeader(MachOOF); in ProcessMachO()
1994 printMachOLoadCommands(MachOOF); in ProcessMachO()
1997 printMachOFileHeader(MachOOF); in ProcessMachO()
1999 printObjcMetaData(MachOOF, !NonVerbose); in ProcessMachO()
2001 printExportsTrie(MachOOF); in ProcessMachO()
2003 printRebaseTable(MachOOF); in ProcessMachO()
2005 printBindTable(MachOOF); in ProcessMachO()
2007 printLazyBindTable(MachOOF); in ProcessMachO()
2009 printWeakBindTable(MachOOF); in ProcessMachO()
2012 std::unique_ptr<DIContext> DICtx = DWARFContext::create(*MachOOF); in ProcessMachO()
2367 if (MachOObjectFile *MachOOF = dyn_cast<MachOObjectFile>(&*O)) in parseInputMachO() local
2368 ProcessMachO(Filename, MachOOF); in parseInputMachO()
2405 if (MachOObjectFile *MachOOF = dyn_cast<MachOObjectFile>(&O)) in parseInputMachO() local
2406 ProcessMachO(Filename, MachOOF, "", ArchitectureName); in parseInputMachO()
2470 if (MachOObjectFile *MachOOF = dyn_cast<MachOObjectFile>(&O)) in parseInputMachO() local
2471 ProcessMachO(Filename, MachOOF); in parseInputMachO()
2521 if (MachOObjectFile *MachOOF = dyn_cast<MachOObjectFile>(&Obj)) in parseInputMachO() local
2522 ProcessMachO(Filename, MachOOF, "", ArchitectureName); in parseInputMachO()
2548 if (MachOObjectFile *MachOOF = dyn_cast<MachOObjectFile>(O)) in parseInputMachO() local
2549 ProcessMachO(Filename, MachOOF, MachOOF->getFileName(), in parseInputMachO()
7188 static void DisassembleMachO(StringRef Filename, MachOObjectFile *MachOOF, in DisassembleMachO() argument
7192 const Target *TheTarget = GetTarget(MachOOF, &McpuDefault, &ThumbTarget); in DisassembleMachO()
7324 MachO::mach_header Header = MachOOF->getHeader(); in DisassembleMachO()
7335 getSectionsAndSymbols(MachOOF, Sections, Symbols, FoundFns, in DisassembleMachO()
7348 for (dice_iterator DI = MachOOF->begin_dices(), DE = MachOOF->end_dices(); in DisassembleMachO()
7361 ObjectFile *DbgObj = MachOOF; in DisassembleMachO()
7414 if (MachOOF->is64Bit()) { in DisassembleMachO()
7415 const MachO::mach_header_64 H_64 = MachOOF->getHeader64(); in DisassembleMachO()
7419 const MachO::mach_header H = MachOOF->getHeader(); in DisassembleMachO()
7461 StringRef SegmentName = MachOOF->getSectionFinalSegmentName(DR); in DisassembleMachO()
7476 for (const SymbolRef &Symbol : MachOOF->symbols()) { in DisassembleMachO()
7478 unwrapOrError(Symbol.getType(), MachOOF->getFileName()); in DisassembleMachO()
7483 unwrapOrError(Symbol.getName(), MachOOF->getFileName()); in DisassembleMachO()
7495 SymbolizerInfo.O = MachOOF; in DisassembleMachO()
7501 ThumbSymbolizerInfo.O = MachOOF; in DisassembleMachO()
7506 unsigned int Arch = MachOOF->getArch(); in DisassembleMachO()
7521 unwrapOrError(Symbols[SymIdx].getName(), MachOOF->getFileName()); in DisassembleMachO()
7523 unwrapOrError(Symbols[SymIdx].getType(), MachOOF->getFileName()); in DisassembleMachO()
7577 Symbols[NextSymIdx].getType(), MachOOF->getFileName()); in DisassembleMachO()
7594 uint32_t SymbolFlags = cantFail(MachOOF->getSymbolFlags(Symb)); in DisassembleMachO()
7627 if (MachOOF->is64Bit()) in DisassembleMachO()
7675 if (MachOOF->getArchTriple().isX86()) { in DisassembleMachO()
7724 if (MachOOF->is64Bit()) in DisassembleMachO()
7740 if (MachOOF->getArchTriple().isX86()) { in DisassembleMachO()