Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1193)

Side by Side Diff: src/trusted/service_runtime/nacl_config.h

Issue 389022: first step in factoring out code dealing with elf into a separate library.... (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/trusted/service_runtime/mmap_test.c ('k') | src/trusted/service_runtime/sel_ldr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_ */
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/mmap_test.c ('k') | src/trusted/service_runtime/sel_ldr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698