reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Object/MachOObjectFile.cpp
 1291       Load = *LoadOrErr;
 1312       if (Load.C.cmdsize % 8 != 0) {
 1317             Load.C.cmd != MachO::LC_THREAD || Load.C.cmdsize % 4) {
 1317             Load.C.cmd != MachO::LC_THREAD || Load.C.cmdsize % 4) {
 1324       if (Load.C.cmdsize % 4 != 0) {
 1330     LoadCommands.push_back(Load);
 1331     if (Load.C.cmd == MachO::LC_SYMTAB) {
 1332       if ((Err = checkSymtabCommand(*this, Load, I, &SymtabLoadCmd, Elements)))
 1334     } else if (Load.C.cmd == MachO::LC_DYSYMTAB) {
 1335       if ((Err = checkDysymtabCommand(*this, Load, I, &DysymtabLoadCmd,
 1338     } else if (Load.C.cmd == MachO::LC_DATA_IN_CODE) {
 1339       if ((Err = checkLinkeditDataCommand(*this, Load, I, &DataInCodeLoadCmd,
 1343     } else if (Load.C.cmd == MachO::LC_LINKER_OPTIMIZATION_HINT) {
 1344       if ((Err = checkLinkeditDataCommand(*this, Load, I, &LinkOptHintsLoadCmd,
 1349     } else if (Load.C.cmd == MachO::LC_FUNCTION_STARTS) {
 1350       if ((Err = checkLinkeditDataCommand(*this, Load, I, &FuncStartsLoadCmd,
 1354     } else if (Load.C.cmd == MachO::LC_SEGMENT_SPLIT_INFO) {
 1355       if ((Err = checkLinkeditDataCommand(*this, Load, I, &SplitInfoLoadCmd,
 1359     } else if (Load.C.cmd == MachO::LC_DYLIB_CODE_SIGN_DRS) {
 1360       if ((Err = checkLinkeditDataCommand(*this, Load, I, &CodeSignDrsLoadCmd,
 1364     } else if (Load.C.cmd == MachO::LC_CODE_SIGNATURE) {
 1365       if ((Err = checkLinkeditDataCommand(*this, Load, I, &CodeSignLoadCmd,
 1369     } else if (Load.C.cmd == MachO::LC_DYLD_INFO) {
 1370       if ((Err = checkDyldInfoCommand(*this, Load, I, &DyldInfoLoadCmd,
 1373     } else if (Load.C.cmd == MachO::LC_DYLD_INFO_ONLY) {
 1374       if ((Err = checkDyldInfoCommand(*this, Load, I, &DyldInfoLoadCmd,
 1377     } else if (Load.C.cmd == MachO::LC_UUID) {
 1378       if (Load.C.cmdsize != sizeof(MachO::uuid_command)) {
 1387       UuidLoadCmd = Load.Ptr;
 1388     } else if (Load.C.cmd == MachO::LC_SEGMENT_64) {
 1391                    *this, Load, Sections, HasPageZeroSegment, I,
 1394     } else if (Load.C.cmd == MachO::LC_SEGMENT) {
 1397                    *this, Load, Sections, HasPageZeroSegment, I,
 1400     } else if (Load.C.cmd == MachO::LC_ID_DYLIB) {
 1401       if ((Err = checkDylibIdCommand(*this, Load, I, &DyldIdLoadCmd)))
 1403     } else if (Load.C.cmd == MachO::LC_LOAD_DYLIB) {
 1404       if ((Err = checkDylibCommand(*this, Load, I, "LC_LOAD_DYLIB")))
 1406       Libraries.push_back(Load.Ptr);
 1407     } else if (Load.C.cmd == MachO::LC_LOAD_WEAK_DYLIB) {
 1408       if ((Err = checkDylibCommand(*this, Load, I, "LC_LOAD_WEAK_DYLIB")))
 1410       Libraries.push_back(Load.Ptr);
 1411     } else if (Load.C.cmd == MachO::LC_LAZY_LOAD_DYLIB) {
 1412       if ((Err = checkDylibCommand(*this, Load, I, "LC_LAZY_LOAD_DYLIB")))
 1414       Libraries.push_back(Load.Ptr);
 1415     } else if (Load.C.cmd == MachO::LC_REEXPORT_DYLIB) {
 1416       if ((Err = checkDylibCommand(*this, Load, I, "LC_REEXPORT_DYLIB")))
 1418       Libraries.push_back(Load.Ptr);
 1419     } else if (Load.C.cmd == MachO::LC_LOAD_UPWARD_DYLIB) {
 1420       if ((Err = checkDylibCommand(*this, Load, I, "LC_LOAD_UPWARD_DYLIB")))
 1422       Libraries.push_back(Load.Ptr);
 1423     } else if (Load.C.cmd == MachO::LC_ID_DYLINKER) {
 1424       if ((Err = checkDyldCommand(*this, Load, I, "LC_ID_DYLINKER")))
 1426     } else if (Load.C.cmd == MachO::LC_LOAD_DYLINKER) {
 1427       if ((Err = checkDyldCommand(*this, Load, I, "LC_LOAD_DYLINKER")))
 1429     } else if (Load.C.cmd == MachO::LC_DYLD_ENVIRONMENT) {
 1430       if ((Err = checkDyldCommand(*this, Load, I, "LC_DYLD_ENVIRONMENT")))
 1432     } else if (Load.C.cmd == MachO::LC_VERSION_MIN_MACOSX) {
 1433       if ((Err = checkVersCommand(*this, Load, I, &VersLoadCmd,
 1436     } else if (Load.C.cmd == MachO::LC_VERSION_MIN_IPHONEOS) {
 1437       if ((Err = checkVersCommand(*this, Load, I, &VersLoadCmd,
 1440     } else if (Load.C.cmd == MachO::LC_VERSION_MIN_TVOS) {
 1441       if ((Err = checkVersCommand(*this, Load, I, &VersLoadCmd,
 1444     } else if (Load.C.cmd == MachO::LC_VERSION_MIN_WATCHOS) {
 1445       if ((Err = checkVersCommand(*this, Load, I, &VersLoadCmd,
 1448     } else if (Load.C.cmd == MachO::LC_NOTE) {
 1449       if ((Err = checkNoteCommand(*this, Load, I, Elements)))
 1451     } else if (Load.C.cmd == MachO::LC_BUILD_VERSION) {
 1452       if ((Err = parseBuildVersionCommand(*this, Load, BuildTools, I)))
 1454     } else if (Load.C.cmd == MachO::LC_RPATH) {
 1455       if ((Err = checkRpathCommand(*this, Load, I)))
 1457     } else if (Load.C.cmd == MachO::LC_SOURCE_VERSION) {
 1458       if (Load.C.cmdsize != sizeof(MachO::source_version_command)) {
 1467       SourceLoadCmd = Load.Ptr;
 1468     } else if (Load.C.cmd == MachO::LC_MAIN) {
 1469       if (Load.C.cmdsize != sizeof(MachO::entry_point_command)) {
 1478       EntryPointLoadCmd = Load.Ptr;
 1479     } else if (Load.C.cmd == MachO::LC_ENCRYPTION_INFO) {
 1480       if (Load.C.cmdsize != sizeof(MachO::encryption_info_command)) {
 1486         getStruct<MachO::encryption_info_command>(*this, Load.Ptr);
 1487       if ((Err = checkEncryptCommand(*this, Load, I, E.cryptoff, E.cryptsize,
 1490     } else if (Load.C.cmd == MachO::LC_ENCRYPTION_INFO_64) {
 1491       if (Load.C.cmdsize != sizeof(MachO::encryption_info_command_64)) {
 1497         getStruct<MachO::encryption_info_command_64>(*this, Load.Ptr);
 1498       if ((Err = checkEncryptCommand(*this, Load, I, E.cryptoff, E.cryptsize,
 1501     } else if (Load.C.cmd == MachO::LC_LINKER_OPTION) {
 1502       if ((Err = checkLinkerOptCommand(*this, Load, I)))
 1504     } else if (Load.C.cmd == MachO::LC_SUB_FRAMEWORK) {
 1505       if (Load.C.cmdsize < sizeof(MachO::sub_framework_command)) {
 1511         getStruct<MachO::sub_framework_command>(*this, Load.Ptr);
 1512       if ((Err = checkSubCommand(*this, Load, I, "LC_SUB_FRAMEWORK",
 1517     } else if (Load.C.cmd == MachO::LC_SUB_UMBRELLA) {
 1518       if (Load.C.cmdsize < sizeof(MachO::sub_umbrella_command)) {
 1524         getStruct<MachO::sub_umbrella_command>(*this, Load.Ptr);
 1525       if ((Err = checkSubCommand(*this, Load, I, "LC_SUB_UMBRELLA",
 1530     } else if (Load.C.cmd == MachO::LC_SUB_LIBRARY) {
 1531       if (Load.C.cmdsize < sizeof(MachO::sub_library_command)) {
 1537         getStruct<MachO::sub_library_command>(*this, Load.Ptr);
 1538       if ((Err = checkSubCommand(*this, Load, I, "LC_SUB_LIBRARY",
 1543     } else if (Load.C.cmd == MachO::LC_SUB_CLIENT) {
 1544       if (Load.C.cmdsize < sizeof(MachO::sub_client_command)) {
 1550         getStruct<MachO::sub_client_command>(*this, Load.Ptr);
 1551       if ((Err = checkSubCommand(*this, Load, I, "LC_SUB_CLIENT",
 1555     } else if (Load.C.cmd == MachO::LC_ROUTINES) {
 1556       if (Load.C.cmdsize != sizeof(MachO::routines_command)) {
 1566       RoutinesLoadCmd = Load.Ptr;
 1567     } else if (Load.C.cmd == MachO::LC_ROUTINES_64) {
 1568       if (Load.C.cmdsize != sizeof(MachO::routines_command_64)) {
 1578       RoutinesLoadCmd = Load.Ptr;
 1579     } else if (Load.C.cmd == MachO::LC_UNIXTHREAD) {
 1580       if ((Err = checkThreadCommand(*this, Load, I, "LC_UNIXTHREAD")))
 1586       UnixThreadLoadCmd = Load.Ptr;
 1587     } else if (Load.C.cmd == MachO::LC_THREAD) {
 1588       if ((Err = checkThreadCommand(*this, Load, I, "LC_THREAD")))
 1591     } else if (Load.C.cmd == MachO::LC_TWOLEVEL_HINTS) {
 1592        if ((Err = checkTwoLevelHintsCommand(*this, Load, I,
 1595     } else if (isLoadCommandObsolete(Load.C.cmd)) {
 1597                            Twine(Load.C.cmd) + " is obsolete and not "
 1605       if (auto LoadOrErr = getNextLoadCommandInfo(*this, I, Load))
 1606         Load = *LoadOrErr;