| OLD | NEW |
| 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 /* | 7 /* |
| 8 * NaCl Simple/secure ELF loader (NaCl SEL). | 8 * NaCl Simple/secure ELF loader (NaCl SEL). |
| 9 * | 9 * |
| 10 * This loader can only process NaCl object files as produced using | 10 * This loader can only process NaCl object files as produced using |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "native_client/src/trusted/service_runtime/nacl_kern_services.h" | 46 #include "native_client/src/trusted/service_runtime/nacl_kern_services.h" |
| 47 #include "native_client/src/trusted/service_runtime/nacl_resource.h" | 47 #include "native_client/src/trusted/service_runtime/nacl_resource.h" |
| 48 | 48 |
| 49 #include "native_client/src/trusted/service_runtime/sel_mem.h" | 49 #include "native_client/src/trusted/service_runtime/sel_mem.h" |
| 50 #include "native_client/src/trusted/service_runtime/sel_util.h" | 50 #include "native_client/src/trusted/service_runtime/sel_util.h" |
| 51 #include "native_client/src/trusted/service_runtime/sel_rt.h" | 51 #include "native_client/src/trusted/service_runtime/sel_rt.h" |
| 52 | 52 |
| 53 #include "native_client/src/trusted/service_runtime/name_service/name_service.h" | 53 #include "native_client/src/trusted/service_runtime/name_service/name_service.h" |
| 54 | 54 |
| 55 #include "native_client/src/trusted/validator/cpufeatures.h" | 55 #include "native_client/src/trusted/validator/cpufeatures.h" |
| 56 #include "native_client/src/trusted/validator/ncvalidate.h" |
| 56 | 57 |
| 57 EXTERN_C_BEGIN | 58 EXTERN_C_BEGIN |
| 58 | 59 |
| 59 #define NACL_SERVICE_PORT_DESCRIPTOR 3 | 60 #define NACL_SERVICE_PORT_DESCRIPTOR 3 |
| 60 #define NACL_SERVICE_ADDRESS_DESCRIPTOR 4 | 61 #define NACL_SERVICE_ADDRESS_DESCRIPTOR 4 |
| 61 | 62 |
| 62 #define NACL_DEFAULT_STACK_MAX (16 << 20) /* main thread stack */ | 63 #define NACL_DEFAULT_STACK_MAX (16 << 20) /* main thread stack */ |
| 63 | 64 |
| 64 #define NACL_SANDBOX_CHROOT_FD "SBX_D" | 65 #define NACL_SANDBOX_CHROOT_FD "SBX_D" |
| 65 | 66 |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 struct DynArray desc_tbl; /* NaClDesc pointers */ | 359 struct DynArray desc_tbl; /* NaClDesc pointers */ |
| 359 | 360 |
| 360 const struct NaClDebugCallbacks *debug_stub_callbacks; | 361 const struct NaClDebugCallbacks *debug_stub_callbacks; |
| 361 struct NaClMutex exception_mu; | 362 struct NaClMutex exception_mu; |
| 362 uint32_t exception_handler; | 363 uint32_t exception_handler; |
| 363 int enable_exception_handling; | 364 int enable_exception_handling; |
| 364 #if NACL_WINDOWS | 365 #if NACL_WINDOWS |
| 365 enum NaClDebugExceptionHandlerState debug_exception_handler_state; | 366 enum NaClDebugExceptionHandlerState debug_exception_handler_state; |
| 366 NaClAttachDebugExceptionHandlerFunc attach_debug_exception_handler_func; | 367 NaClAttachDebugExceptionHandlerFunc attach_debug_exception_handler_func; |
| 367 #endif | 368 #endif |
| 368 int enable_dfa_validator; | 369 const struct NaClValidatorInterface *validator; |
| 369 }; | 370 }; |
| 370 | 371 |
| 371 | 372 |
| 372 | 373 |
| 373 void NaClAppIncrVerbosity(void); | 374 void NaClAppIncrVerbosity(void); |
| 374 | 375 |
| 375 /* | 376 /* |
| 376 * Initializes a NaCl application with the default parameters | 377 * Initializes a NaCl application with the default parameters |
| 377 * and the specified syscall table. | 378 * and the specified syscall table. |
| 378 * | 379 * |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 | 769 |
| 769 void NaClGdbHook(struct NaClApp const *nap); | 770 void NaClGdbHook(struct NaClApp const *nap); |
| 770 | 771 |
| 771 #if NACL_LINUX | 772 #if NACL_LINUX |
| 772 void handle_r_debug(const char *switch_value, char *argv0); | 773 void handle_r_debug(const char *switch_value, char *argv0); |
| 773 #endif | 774 #endif |
| 774 | 775 |
| 775 EXTERN_C_END | 776 EXTERN_C_END |
| 776 | 777 |
| 777 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ | 778 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ |
| OLD | NEW |