| Index: components/nacl/loader/bare_metal/bare_metal_error_code.h
|
| diff --git a/components/nacl/loader/bare_metal/bare_metal_error_code.h b/components/nacl/loader/bare_metal/bare_metal_error_code.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..aab359d561ef4f88ef819f412315003d8960fedb
|
| --- /dev/null
|
| +++ b/components/nacl/loader/bare_metal/bare_metal_error_code.h
|
| @@ -0,0 +1,41 @@
|
| +/*
|
| + * 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_BARE_METAL_BARE_METAL_ERROR_CODE_H_
|
| +#define COMPONENTS_NACL_LOADER_BARE_METAL_BARE_METAL_ERROR_CODE_H_
|
| +
|
| +#include "native_client/src/include/nacl_base.h"
|
| +
|
| +EXTERN_C_BEGIN
|
| +
|
| +/*
|
| + * 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.
|
| + */
|
| +typedef enum NaClBareMetalErrorCode {
|
| + BARE_METAL_LOAD_OK = 0,
|
| + BARE_METAL_LOAD_INTERNAL = 4,
|
| + BARE_METAL_LOAD_READ_ERROR = 8,
|
| + BARE_METAL_LOAD_TOO_MANY_PROG_HDRS = 9,
|
| + BARE_METAL_LOAD_BAD_PHENTSIZE = 10,
|
| + BARE_METAL_LOAD_BAD_ELF_MAGIC = 11,
|
| + BARE_METAL_LOAD_NOT_32_BIT = 12,
|
| + BARE_METAL_LOAD_NOT_EXEC = 15,
|
| + BARE_METAL_LOAD_BAD_MACHINE = 16,
|
| + BARE_METAL_LOAD_BAD_ELF_VERS = 17,
|
| + BARE_METAL_LOAD_NO_MEMORY = 20,
|
| + BARE_METAL_LOAD_UNLOADABLE = 32,
|
| + BARE_METAL_LOAD_BAD_EHSIZE = 60,
|
| + BARE_METAL_LOAD_EHDR_OVERFLOW = 61,
|
| + BARE_METAL_LOAD_PHDR_OVERFLOW = 62,
|
| +} NaClBareMetalErrorCode;
|
| +
|
| +EXTERN_C_END
|
| +
|
| +#endif /* COMPONENTS_NACL_LOADER_BARE_METAL_BARE_METAL_ERROR_CODE_H_ */
|
|
|