Changeset 53


Ignore:
Timestamp:
Jul 9, 2013, 7:18:44 PM (12 years ago)
Author:
bird
Message:

Made 64-bit mach_kernel (10.7.4) loadable for debug info purposes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrModMachO.c

    r52 r53  
    599599                         || (KU64)u.pSeg32->fileoff + u.pSeg32->filesize > cbFile))
    600600                    return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;
    601                 if (!u.pSeg32->filesize && u.pSeg32->fileoff)
    602                     return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;
    603601                if (u.pSeg32->vmsize < u.pSeg32->filesize)
    604602                    return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;
     
    668666                                return KLDR_ERR_MACHO_BAD_SECTION;
    669667                            *pfCanLoad = K_FALSE;
    670                             fFileBits = 0;
     668                            fFileBits = -1; /* __DATA.__got in the 64-bit mach_kernel has bits, any things without bits? */
    671669                            break;
    672670
     
    796794                         || u.pSeg64->fileoff + u.pSeg64->filesize > cbFile))
    797795                    return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;
    798                 if (!u.pSeg64->filesize && u.pSeg64->fileoff)
    799                     return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;
    800796                if (u.pSeg64->vmsize < u.pSeg64->filesize)
    801797                    return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;
     
    865861                                return KLDR_ERR_MACHO_BAD_SECTION;
    866862                            *pfCanLoad = K_FALSE;
    867                             fFileBits = 0;
     863                            fFileBits = -1; /* __DATA.__got in the 64-bit mach_kernel has bits, any things without bits? */
    868864                            break;
    869865
Note: See TracChangeset for help on using the changeset viewer.