Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/trusted/service_runtime/nacl_error_code.h

Issue 8161004: Handle ELFCLASS32 files for x86-64 (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: typo fixes in last iteration Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/trusted/service_runtime/elf_util.c ('k') | src/trusted/service_runtime/nacl_error_code.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * NaCl error codes. 8 * NaCl error codes.
9 */ 9 */
10 10
11 #ifndef SERVICE_RUNTIME_NACL_ERROR_CODE_H__ 11 #ifndef SERVICE_RUNTIME_NACL_ERROR_CODE_H__
12 #define SERVICE_RUNTIME_NACL_ERROR_CODE_H__ 1 12 #define SERVICE_RUNTIME_NACL_ERROR_CODE_H__ 1
13 13
14 #ifdef __cplusplus 14 #ifdef __cplusplus
15 extern "C" { 15 extern "C" {
16 #endif 16 #endif
17 17
18 // These error codes are reported via UMA so, if you edit them: 18 // These error codes are reported via UMA so, if you edit them:
19 // 1) make sure you understand UMA, first. 19 // 1) make sure you understand UMA, first.
20 // 2) update src/tools/histograms/histograms.xml in 20 // 2) update src/tools/histograms/histograms.xml in
21 // svn://svn.chromium.org/chrome-internal/trunk/src-internal 21 // svn://svn.chromium.org/chrome-internal/trunk/src-internal
22 // 3) never reuse old numbers for a different meaning; add new ones on the end
22 // Values are explicitly specified to make sure they don't shift around when 23 // Values are explicitly specified to make sure they don't shift around when
23 // edited, and also to make reading about:histograms easier. 24 // edited, and also to make reading about:histograms easier.
24 typedef enum NaClErrorCode { 25 typedef enum NaClErrorCode {
25 LOAD_OK = 0, 26 LOAD_OK = 0,
26 LOAD_STATUS_UNKNOWN = 1, /* load status not available yet */ 27 LOAD_STATUS_UNKNOWN = 1, /* load status not available yet */
27 LOAD_UNSUPPORTED_OS_PLATFORM = 2, 28 LOAD_UNSUPPORTED_OS_PLATFORM = 2,
28 LOAD_DEP_UNSUPPORTED = 3, 29 LOAD_DEP_UNSUPPORTED = 3,
29 LOAD_INTERNAL = 4, 30 LOAD_INTERNAL = 4,
30 LOAD_DUP_LOAD_MODULE = 5, 31 LOAD_DUP_LOAD_MODULE = 5,
31 LOAD_DUP_START_MODULE = 6, 32 LOAD_DUP_START_MODULE = 6,
32 LOAD_OPEN_ERROR = 7, 33 LOAD_OPEN_ERROR = 7,
33 LOAD_READ_ERROR = 8, 34 LOAD_READ_ERROR = 8,
34 LOAD_TOO_MANY_PROG_HDRS = 9, 35 LOAD_TOO_MANY_PROG_HDRS = 9,
35 LOAD_PROG_HDR_SIZE_TOO_SMALL = 10, 36 LOAD_BAD_PHENTSIZE = 10,
36 LOAD_BAD_ELF_MAGIC = 11, 37 LOAD_BAD_ELF_MAGIC = 11,
37 LOAD_NOT_32_BIT = 12, 38 LOAD_NOT_32_BIT = 12,
38 LOAD_NOT_64_BIT = 13, 39 LOAD_NOT_64_BIT = 13,
39 LOAD_BAD_ABI = 14, 40 LOAD_BAD_ABI = 14,
40 LOAD_NOT_EXEC = 15, 41 LOAD_NOT_EXEC = 15,
41 LOAD_BAD_MACHINE = 16, 42 LOAD_BAD_MACHINE = 16,
42 LOAD_BAD_ELF_VERS = 17, 43 LOAD_BAD_ELF_VERS = 17,
43 LOAD_TOO_MANY_SECT = 18, 44 LOAD_TOO_MANY_SECT = 18,
44 LOAD_BAD_SECT = 19, 45 LOAD_BAD_SECT = 19,
45 LOAD_NO_MEMORY = 20, 46 LOAD_NO_MEMORY = 20,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 LOAD_DUP_SEGMENT = 52, 78 LOAD_DUP_SEGMENT = 52,
78 LOAD_SEGMENT_BAD_LOC = 53, 79 LOAD_SEGMENT_BAD_LOC = 53,
79 LOAD_BAD_SEGMENT = 54, 80 LOAD_BAD_SEGMENT = 54,
80 LOAD_REQUIRED_SEG_MISSING = 55, 81 LOAD_REQUIRED_SEG_MISSING = 55,
81 LOAD_SEGMENT_BAD_PARAM = 56, 82 LOAD_SEGMENT_BAD_PARAM = 56,
82 LOAD_VALIDATION_FAILED = 57, 83 LOAD_VALIDATION_FAILED = 57,
83 LOAD_UNIMPLEMENTED = 58, 84 LOAD_UNIMPLEMENTED = 58,
84 /* 85 /*
85 * service runtime errors (post load, during startup phase) 86 * service runtime errors (post load, during startup phase)
86 */ 87 */
87 SRT_NO_SEG_SEL = 59 88 SRT_NO_SEG_SEL = 59,
89
90 LOAD_BAD_EHSIZE = 60,
91 LOAD_EHDR_OVERFLOW = 61,
92 LOAD_PHDR_OVERFLOW = 62
88 } NaClErrorCode; 93 } NaClErrorCode;
89 #define NACL_ERROR_CODE_MAX (SRT_NO_SEG_SEL+1) 94
95 #define NACL_ERROR_CODE_MAX (LOAD_PHDR_OVERFLOW + 1)
90 96
91 char const *NaClErrorString(NaClErrorCode errcode); 97 char const *NaClErrorString(NaClErrorCode errcode);
92 98
93 #ifdef __cplusplus 99 #ifdef __cplusplus
94 } /* end of extern "C" */ 100 } /* end of extern "C" */
95 #endif 101 #endif
96 102
97 #endif 103 #endif
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/elf_util.c ('k') | src/trusted/service_runtime/nacl_error_code.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698