Changeset 2954 for trunk/kLdr/kLdr.h


Ignore:
Timestamp:
Feb 7, 2007, 5:42:32 AM (19 years ago)
Author:
bird
Message:

implemented kldrModMachOPreParseLoadCommands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdr.h

    r2952 r2954  
    11171117/** The mach-o image format isn't supported by this kLdr build. */
    11181118#define KLDR_ERR_MACHO_NOT_SUPPORTED    (KLDR_ERR_BASE + 7)
    1119 /** The mach-o image format isn't supported by this kLdr build. */
    1120 #define KLDR_ERR_AOUT_NOT_SUPPORTED     (KLDR_ERR_BASE + 8)
     1119/** The FAT image format isn't supported by this kLdr build or
     1120 * a direct open was attempt without going thru the FAT file provider.
     1121 * FAT images are also known as Universal Binaries. */
     1122#define KLDR_ERR_FAT_NOT_SUPPORTED      (KLDR_ERR_BASE + 8)
     1123/** The a.out image format isn't supported by this kLdr build. */
     1124#define KLDR_ERR_AOUT_NOT_SUPPORTED     (KLDR_ERR_BASE + 9)
    11211125
    11221126/** Invalid parameter to a kLdr API. */
     
    12371241 * @{ */
    12381242#define KLDR_ERR_MACHO_BASE                                 (KLDR_ERR_LX_BASE + 12)
    1239 /** Only native endian MACH-O files are supported. */
     1243/** Only native endian Mach-O files are supported. */
    12401244#define KLDR_ERR_MACHO_OTHER_ENDIAN_NOT_SUPPORTED           (KLDR_ERR_MACHO_BASE + 0)
    1241 /** 64-bit MACH-O files aren't supported yet. */
     1245/** 64-bit Mach-O files aren't supported yet. */
    12421246#define KLDR_ERR_MACHO_64BIT_NOT_SUPPORTED                  (KLDR_ERR_MACHO_BASE + 1)
    1243 /** The MACH-O header is bad or contains new and unsupported features. */
     1247/** The Mach-O header is bad or contains new and unsupported features. */
    12441248#define KLDR_ERR_MACHO_BAD_HEADER                           (KLDR_ERR_MACHO_BASE + 2)
    12451249/** The file type isn't supported. */
     
    12471251/** The machine (cputype / cpusubtype combination) isn't supported. */
    12481252#define KLDR_ERR_MACHO_UNSUPPORTED_MACHINE                  (KLDR_ERR_MACHO_BASE + 4)
     1253/** Bad load command(s). */
     1254#define KLDR_ERR_MACHO_BAD_LOAD_COMMAND                     (KLDR_ERR_MACHO_BASE + 5)
     1255/** Encountered an unknown load command.*/
     1256#define KLDR_ERR_MACHO_UNKNOWN_LOAD_COMMAND                 (KLDR_ERR_MACHO_BASE + 6)
     1257/** Encountered a load command that's not implemented.*/
     1258#define KLDR_ERR_MACHO_UNSUPPORTED_LOAD_COMMAND             (KLDR_ERR_MACHO_BASE + 7)
     1259/** Bad section. */
     1260#define KLDR_ERR_MACHO_BAD_SECTION                          (KLDR_ERR_MACHO_BASE + 8)
     1261/** Encountered a section type that's not implemented.*/
     1262#define KLDR_ERR_MACHO_UNSUPPORTED_SECTION                  (KLDR_ERR_MACHO_BASE + 9)
     1263/** Encountered a section type that's not known to the loader. (probably invalid) */
     1264#define KLDR_ERR_MACHO_UNKNOWN_SECTION                      (KLDR_ERR_MACHO_BASE + 10)
     1265/** The sections aren't ordered by segment as expected by the loader. */
     1266#define KLDR_ERR_MACHO_BAD_SECTION_ORDER                    (KLDR_ERR_MACHO_BASE + 11)
    12491267/** @} */
    12501268
    12511269/** End of the valid kLdr status codes. */
    1252 #define KLDR_ERR_END                                        (KLDR_ERR_LX_BASE + 12)
     1270#define KLDR_ERR_END                                        (KLDR_ERR_MACHO_BASE + 12)
    12531271
    12541272/** @} */
Note: See TracChangeset for help on using the changeset viewer.