Changeset 21 in kStuff for trunk/include
- Timestamp:
- Jan 30, 2009 6:28:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/k/kErrors.h
r2 r21 259 259 /** Only native endian Mach-O files are supported. */ 260 260 #define KLDR_ERR_MACHO_OTHER_ENDIAN_NOT_SUPPORTED (KLDR_ERR_MACHO_BASE + 0) 261 /** 64-bit Mach-O files aren't supported yet. */262 #define KLDR_ERR_MACHO_64BIT_NOT_SUPPORTED (KLDR_ERR_MACHO_BASE + 1)263 261 /** The Mach-O header is bad or contains new and unsupported features. */ 264 #define KLDR_ERR_MACHO_BAD_HEADER (KLDR_ERR_MACHO_BASE + 2)262 #define KLDR_ERR_MACHO_BAD_HEADER (KLDR_ERR_MACHO_BASE + 1) 265 263 /** The file type isn't supported. */ 266 #define KLDR_ERR_MACHO_UNSUPPORTED_FILE_TYPE (KLDR_ERR_MACHO_BASE + 3)264 #define KLDR_ERR_MACHO_UNSUPPORTED_FILE_TYPE (KLDR_ERR_MACHO_BASE + 2) 267 265 /** The machine (cputype / cpusubtype combination) isn't supported. */ 268 #define KLDR_ERR_MACHO_UNSUPPORTED_MACHINE (KLDR_ERR_MACHO_BASE + 4)266 #define KLDR_ERR_MACHO_UNSUPPORTED_MACHINE (KLDR_ERR_MACHO_BASE + 3) 269 267 /** Bad load command(s). */ 270 #define KLDR_ERR_MACHO_BAD_LOAD_COMMAND (KLDR_ERR_MACHO_BASE + 5)268 #define KLDR_ERR_MACHO_BAD_LOAD_COMMAND (KLDR_ERR_MACHO_BASE + 4) 271 269 /** Encountered an unknown load command.*/ 272 #define KLDR_ERR_MACHO_UNKNOWN_LOAD_COMMAND (KLDR_ERR_MACHO_BASE + 6)270 #define KLDR_ERR_MACHO_UNKNOWN_LOAD_COMMAND (KLDR_ERR_MACHO_BASE + 5) 273 271 /** Encountered a load command that's not implemented.*/ 274 #define KLDR_ERR_MACHO_UNSUPPORTED_LOAD_COMMAND (KLDR_ERR_MACHO_BASE + 7)272 #define KLDR_ERR_MACHO_UNSUPPORTED_LOAD_COMMAND (KLDR_ERR_MACHO_BASE + 6) 275 273 /** Bad section. */ 276 #define KLDR_ERR_MACHO_BAD_SECTION (KLDR_ERR_MACHO_BASE + 8)274 #define KLDR_ERR_MACHO_BAD_SECTION (KLDR_ERR_MACHO_BASE + 7) 277 275 /** Encountered a section type that's not implemented.*/ 278 #define KLDR_ERR_MACHO_UNSUPPORTED_SECTION (KLDR_ERR_MACHO_BASE + 9) 276 #define KLDR_ERR_MACHO_UNSUPPORTED_SECTION (KLDR_ERR_MACHO_BASE + 8) 277 /** Encountered a init function section. */ 278 #define KLDR_ERR_MACHO_UNSUPPORTED_INIT_SECTION (KLDR_ERR_MACHO_BASE + 9) 279 /** Encountered a term function section. */ 280 #define KLDR_ERR_MACHO_UNSUPPORTED_TERM_SECTION (KLDR_ERR_MACHO_BASE + 10) 279 281 /** Encountered a section type that's not known to the loader. (probably invalid) */ 280 #define KLDR_ERR_MACHO_UNKNOWN_SECTION (KLDR_ERR_MACHO_BASE + 1 0)282 #define KLDR_ERR_MACHO_UNKNOWN_SECTION (KLDR_ERR_MACHO_BASE + 11) 281 283 /** The sections aren't ordered by segment as expected by the loader. */ 282 #define KLDR_ERR_MACHO_BAD_SECTION_ORDER (KLDR_ERR_MACHO_BASE + 1 1)284 #define KLDR_ERR_MACHO_BAD_SECTION_ORDER (KLDR_ERR_MACHO_BASE + 12) 283 285 /** The image is 32-bit and contains 64-bit load commands or vise versa. */ 284 #define KLDR_ERR_MACHO_BIT_MIX (KLDR_ERR_MACHO_BASE + 1 2)286 #define KLDR_ERR_MACHO_BIT_MIX (KLDR_ERR_MACHO_BASE + 13) 285 287 /** Bad MH_OBJECT file. */ 286 #define KLDR_ERR_MACHO_BAD_OBJECT_FILE (KLDR_ERR_MACHO_BASE + 1 3)288 #define KLDR_ERR_MACHO_BAD_OBJECT_FILE (KLDR_ERR_MACHO_BASE + 14) 287 289 /** Bad symbol table entry. */ 288 #define KLDR_ERR_MACHO_BAD_SYMBOL (KLDR_ERR_MACHO_BASE + 1 4)290 #define KLDR_ERR_MACHO_BAD_SYMBOL (KLDR_ERR_MACHO_BASE + 15) 289 291 /** Unsupported fixup type. */ 290 #define KLDR_ERR_MACHO_UNSUPPORTED_FIXUP_TYPE (KLDR_ERR_MACHO_BASE + 1 5)292 #define KLDR_ERR_MACHO_UNSUPPORTED_FIXUP_TYPE (KLDR_ERR_MACHO_BASE + 16) 291 293 /** @} */ 292 294 … … 295 297 */ 296 298 /** The base of the kCpu specific status codes. */ 297 #define KCPU_ERR_BASE (KLDR_ERR_MACHO_BASE + 1 6)299 #define KCPU_ERR_BASE (KLDR_ERR_MACHO_BASE + 18) 298 300 /** The specified ARCH+CPU pairs aren't compatible. */ 299 301 #define KCPU_ERR_ARCH_CPU_NOT_COMPATIBLE (KCPU_ERR_BASE + 0)
Note:
See TracChangeset
for help on using the changeset viewer.