OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_ |
| 6 #define COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_ |
| 7 |
| 8 namespace nacl { |
| 9 namespace nonsfi { |
| 10 |
| 11 // The values are temporarily copied from |
| 12 // native_client/src/trusted/service_runtime/nacl_error_code.h in order to |
| 13 // split the dependency to the service_runtime. |
| 14 // TODO(hidehiko): Once Bare Metal Mode gets stable enough, we should merge |
| 15 // these values to nacl_error_code. |
| 16 enum NonSfiErrorCode { |
| 17 LOAD_OK = 0, |
| 18 LOAD_INTERNAL = 4, |
| 19 LOAD_READ_ERROR = 8, |
| 20 LOAD_TOO_MANY_PROG_HDRS = 9, |
| 21 LOAD_BAD_PHENTSIZE = 10, |
| 22 LOAD_BAD_ELF_MAGIC = 11, |
| 23 LOAD_NOT_32_BIT = 12, |
| 24 LOAD_NOT_EXEC = 15, |
| 25 LOAD_BAD_MACHINE = 16, |
| 26 LOAD_BAD_ELF_VERS = 17, |
| 27 LOAD_NO_MEMORY = 20, |
| 28 LOAD_UNLOADABLE = 32, |
| 29 LOAD_BAD_EHSIZE = 60, |
| 30 LOAD_EHDR_OVERFLOW = 61, |
| 31 LOAD_PHDR_OVERFLOW = 62, |
| 32 }; |
| 33 |
| 34 } // namespace nonsfi |
| 35 } // namespace nacl |
| 36 |
| 37 #endif // COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_ |
OLD | NEW |