6 * Copyright 2008, Google Inc.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are
13 * * Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * * Redistributions in binary form must reproduce the above
16 * copyright notice, this list of conditions and the following disclaimer
17 * in the documentation and/or other materials provided with the
19 * * Neither the name of Google Inc. nor the names of its
20 * contributors may be used to endorse or promote products derived from
21 * this software without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 * TODO: what's the right location for this file?
38 * It's needed to compile both ncv and service_runtime.
42 #if !defined(NACL_LINUX) && !defined(NACL_OSX) && !defined(NACL_WINDOWS)
43 #error "Bad NaCL build."
46 #include "native_client/include/elf.h"
49 * The ELF OS ABI marker for a NativeClient module.
50 * TODO: Get real values approved by the appropriate authorities.
52 #define ELFOSABI_NACL 123
54 /* e_flags settings for NativeClient. */
55 #define EF_NACL_ALIGN_MASK 0x300000 /* bits indicating alignment */
56 #define EF_NACL_ALIGN_16 0x100000 /* aligned zero mod 16 */
57 #define EF_NACL_ALIGN_32 0x200000 /* aligned zero mod 32 */
58 #define EF_NACL_ALIGN_LIB 0x000000 /* aligned to pass either way */
60 /* ABI version - increment when ABI changes are incompatible. */
61 #define EF_NACL_ABIVERSION 0