| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008, Google Inc. | 2 * Copyright 2008, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 /* | 32 /* |
| 33 * NaCl Simple/secure ELF loader (NaCl SEL). | 33 * NaCl Simple/secure ELF loader (NaCl SEL). |
| 34 */ | 34 */ |
| 35 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_CONFIG_H_ | 35 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_CONFIG_H_ |
| 36 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_CONFIG_H_ | 36 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_CONFIG_H_ |
| 37 | 37 |
| 38 #include "native_client/src/include/nacl_base.h" | 38 #include "native_client/src/include/nacl_base.h" |
| 39 | 39 |
| 40 /* maximum number of elf program headers allowed. */ |
| 41 #define NACL_MAX_PROGRAM_HEADERS 128 |
| 42 |
| 40 /* | 43 /* |
| 41 * this value must be consistent with NaCl compiler flags | 44 * this value must be consistent with NaCl compiler flags |
| 42 * -falign-functions -falign-labels -and nacl-align. | 45 * -falign-functions -falign-labels -and nacl-align. |
| 43 */ | 46 */ |
| 44 #if defined(NACL_BLOCK_SHIFT) | 47 #if defined(NACL_BLOCK_SHIFT) |
| 45 # define NACL_INSTR_BLOCK_SHIFT (NACL_BLOCK_SHIFT) | 48 # define NACL_INSTR_BLOCK_SHIFT (NACL_BLOCK_SHIFT) |
| 46 #else | 49 #else |
| 47 # error "NACL_BLOCK_SHIFT should be defined by CFLAGS" | 50 # error "NACL_BLOCK_SHIFT should be defined by CFLAGS" |
| 48 #endif | 51 #endif |
| 49 #define NACL_INSTR_BLOCK_SIZE (1 << NACL_INSTR_BLOCK_SHIFT) | 52 #define NACL_INSTR_BLOCK_SIZE (1 << NACL_INSTR_BLOCK_SHIFT) |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 #define NACL_ARM_BUNDLE_SIZE_LOG 4 | 163 #define NACL_ARM_BUNDLE_SIZE_LOG 4 |
| 161 #else /* NACL_ARCH(NACL_BUILD_ARCH) */ | 164 #else /* NACL_ARCH(NACL_BUILD_ARCH) */ |
| 162 | 165 |
| 163 #error Unknown platform! | 166 #error Unknown platform! |
| 164 | 167 |
| 165 #endif /* NACL_ARCH(NACL_BUILD_ARCH) */ | 168 #endif /* NACL_ARCH(NACL_BUILD_ARCH) */ |
| 166 | 169 |
| 167 #define NACL_SYSARGS_FIX NACL_USERRET_FIX + 0x4 | 170 #define NACL_SYSARGS_FIX NACL_USERRET_FIX + 0x4 |
| 168 | 171 |
| 169 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_CONFIG_H_ */ | 172 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_CONFIG_H_ */ |
| OLD | NEW |