| 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..2d0edb9cc6e342e1ce0595d7030529a3ee3e34dd
|
| --- /dev/null
|
| +++ b/components/nacl/loader/nonsfi/nonsfi_error_code.h
|
| @@ -0,0 +1,37 @@
|
| +// 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
|
| +// 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_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_
|
|
|