Chromium Code Reviews| Index: components/nacl/loader/nonsfi/nonsfi_error_code.h |
| diff --git a/components/nacl/loader/nonsfi/nonsfi_error_code.h b/components/nacl/loader/nonsfi/nonsfi_error_code.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4cc6166c5c2aaf6df165daba25f22dd4a02b3179 |
| --- /dev/null |
| +++ b/components/nacl/loader/nonsfi/nonsfi_error_code.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_ |
| +#define COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_ |
| + |
| +namespace nacl { |
| +namespace nonsfi { |
| + |
| +// The values are temporarily copied from |
|
Mark Seaborn
2013/12/12 04:49:48
The reason I wanted to minimise dependencies on se
hidehiko
2013/12/12 09:26:04
Ok, so please let me use nacl_error_code.h for now
|
| +// native_client/src/trusted/service_runtime/nacl_error_code.h in order to |
| +// split the dependency to the service_runtime. |
| +// TODO(hidehiko): Once Bare Metal Mode gets stable enough, we should merge |
| +// these values to nacl_error_code. |
| +enum NonSfiErrorCode { |
| + LOAD_OK = 0, |
| + LOAD_INTERNAL = 4, |
| + LOAD_READ_ERROR = 8, |
| + LOAD_TOO_MANY_PROG_HDRS = 9, |
| + LOAD_BAD_PHENTSIZE = 10, |
| + LOAD_BAD_ELF_MAGIC = 11, |
| + LOAD_NOT_32_BIT = 12, |
| + LOAD_NOT_64_BIT = 13, |
| + LOAD_NOT_EXEC = 15, |
| + LOAD_BAD_MACHINE = 16, |
| + LOAD_BAD_ELF_VERS = 17, |
| + LOAD_NO_MEMORY = 20, |
| + LOAD_UNLOADABLE = 32, |
| + LOAD_BAD_EHSIZE = 60, |
| + LOAD_EHDR_OVERFLOW = 61, |
| + LOAD_PHDR_OVERFLOW = 62, |
| +}; |
| + |
| +} // namespace nonsfi |
| +} // namespace nacl |
| + |
| +#endif // COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_ |