Ignore:
Timestamp:
Aug 26, 2012, 5:53:57 PM (13 years ago)
Author:
bird
Message:

mach-o: Added new load commands from 10.6 and 10.7. Made the loader ignore version requirements and code signatures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrModMachO.c

    r47 r48  
    10081008                    return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;
    10091009                /** @todo Check anything here need converting? */
     1010                break;
     1011
     1012            case LC_CODE_SIGNATURE:
     1013                if (u.pUuid->cmdsize != sizeof(linkedit_data_command_t))
     1014                    return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;
     1015                break;
     1016
     1017            case LC_VERSION_MIN_MACOSX:
     1018            case LC_VERSION_MIN_IPHONEOS:
     1019                if (u.pUuid->cmdsize != sizeof(version_min_command_t))
     1020                    return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;
    10101021                break;
    10111022
Note: See TracChangeset for help on using the changeset viewer.