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

Side by Side Diff: src/trusted/service_runtime/sel_ldr.c

Issue 10070010: validator_ragel: Link into TCB, use under env var (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: . Created 8 years, 8 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 /* 9 /*
10 * NaCl Simple/secure ELF loader (NaCl SEL). 10 * NaCl Simple/secure ELF loader (NaCl SEL).
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 struct NaClDescEffectorLdr *effp; 68 struct NaClDescEffectorLdr *effp;
69 69
70 /* Get the set of features that the CPU we're running on supports. */ 70 /* Get the set of features that the CPU we're running on supports. */
71 /* These may be adjusted later in sel_main.c for fixed-feature CPU mode. */ 71 /* These may be adjusted later in sel_main.c for fixed-feature CPU mode. */
72 NaClGetCurrentCPUFeatures(&nap->cpu_features); 72 NaClGetCurrentCPUFeatures(&nap->cpu_features);
73 nap->fixed_feature_cpu_mode = 0; 73 nap->fixed_feature_cpu_mode = 0;
74 74
75 /* The validation cache will be injected later, if it exists. */ 75 /* The validation cache will be injected later, if it exists. */
76 nap->validation_cache = NULL; 76 nap->validation_cache = NULL;
77 77
78 nap->enable_dfa_validator = 0;
79
78 nap->addr_bits = NACL_MAX_ADDR_BITS; 80 nap->addr_bits = NACL_MAX_ADDR_BITS;
79 81
80 nap->stack_size = NACL_DEFAULT_STACK_MAX; 82 nap->stack_size = NACL_DEFAULT_STACK_MAX;
81 83
82 nap->aux_info = NULL; 84 nap->aux_info = NULL;
83 85
84 nap->mem_start = 0; 86 nap->mem_start = 0;
85 87
86 #if (NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 \ 88 #if (NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 \
87 && NACL_BUILD_SUBARCH == 32 && __PIC__) 89 && NACL_BUILD_SUBARCH == 32 && __PIC__)
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 nacl_global_xlate_base = mem_start; 1696 nacl_global_xlate_base = mem_start;
1695 1697
1696 NaClSandboxMemoryStartForValgrind(mem_start); 1698 NaClSandboxMemoryStartForValgrind(mem_start);
1697 1699
1698 _ovly_debug_event(); 1700 _ovly_debug_event();
1699 } 1701 }
1700 1702
1701 void NaClGdbHook(struct NaClApp const *nap) { 1703 void NaClGdbHook(struct NaClApp const *nap) {
1702 StopForDebuggerInit(nap->mem_start); 1704 StopForDebuggerInit(nap->mem_start);
1703 } 1705 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698