| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "native_client/src/trusted/service_runtime/nacl_kern_services.h" | 47 #include "native_client/src/trusted/service_runtime/nacl_kern_services.h" |
| 48 #include "native_client/src/trusted/service_runtime/nacl_resource.h" | 48 #include "native_client/src/trusted/service_runtime/nacl_resource.h" |
| 49 | 49 |
| 50 #include "native_client/src/trusted/service_runtime/sel_mem.h" | 50 #include "native_client/src/trusted/service_runtime/sel_mem.h" |
| 51 #include "native_client/src/trusted/service_runtime/sel_util.h" | 51 #include "native_client/src/trusted/service_runtime/sel_util.h" |
| 52 #include "native_client/src/trusted/service_runtime/sel_rt.h" | 52 #include "native_client/src/trusted/service_runtime/sel_rt.h" |
| 53 | 53 |
| 54 #include "native_client/src/trusted/service_runtime/name_service/name_service.h" | 54 #include "native_client/src/trusted/service_runtime/name_service/name_service.h" |
| 55 | 55 |
| 56 #include "native_client/src/trusted/validator/cpufeatures.h" | 56 #include "native_client/src/trusted/validator/cpufeatures.h" |
| 57 #include "native_client/src/trusted/validator/ncvalidate.h" |
| 57 | 58 |
| 58 EXTERN_C_BEGIN | 59 EXTERN_C_BEGIN |
| 59 | 60 |
| 60 #define NACL_SERVICE_PORT_DESCRIPTOR 3 | 61 #define NACL_SERVICE_PORT_DESCRIPTOR 3 |
| 61 #define NACL_SERVICE_ADDRESS_DESCRIPTOR 4 | 62 #define NACL_SERVICE_ADDRESS_DESCRIPTOR 4 |
| 62 | 63 |
| 63 #define NACL_DEFAULT_STACK_MAX (16 << 20) /* main thread stack */ | 64 #define NACL_DEFAULT_STACK_MAX (16 << 20) /* main thread stack */ |
| 64 | 65 |
| 65 #define NACL_SANDBOX_CHROOT_FD "SBX_D" | 66 #define NACL_SANDBOX_CHROOT_FD "SBX_D" |
| 66 | 67 |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 | 349 |
| 349 int enable_debug_stub; | 350 int enable_debug_stub; |
| 350 struct NaClDebugCallbacks *debug_stub_callbacks; | 351 struct NaClDebugCallbacks *debug_stub_callbacks; |
| 351 struct NaClMutex exception_mu; | 352 struct NaClMutex exception_mu; |
| 352 uint32_t exception_handler; | 353 uint32_t exception_handler; |
| 353 int enable_exception_handling; | 354 int enable_exception_handling; |
| 354 #if NACL_WINDOWS | 355 #if NACL_WINDOWS |
| 355 enum NaClDebugExceptionHandlerState debug_exception_handler_state; | 356 enum NaClDebugExceptionHandlerState debug_exception_handler_state; |
| 356 NaClAttachDebugExceptionHandlerFunc attach_debug_exception_handler_func; | 357 NaClAttachDebugExceptionHandlerFunc attach_debug_exception_handler_func; |
| 357 #endif | 358 #endif |
| 358 int enable_dfa_validator; | 359 struct NaClValidatorInterface *validator; |
| 359 }; | 360 }; |
| 360 | 361 |
| 361 | 362 |
| 362 | 363 |
| 363 void NaClAppIncrVerbosity(void); | 364 void NaClAppIncrVerbosity(void); |
| 364 | 365 |
| 365 /* | 366 /* |
| 366 * Initializes a NaCl application with the default parameters | 367 * Initializes a NaCl application with the default parameters |
| 367 * and the specified syscall table. | 368 * and the specified syscall table. |
| 368 * | 369 * |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 | 779 |
| 779 #endif | 780 #endif |
| 780 | 781 |
| 781 #if NACL_LINUX | 782 #if NACL_LINUX |
| 782 void handle_r_debug(const char *switch_value, char *argv0); | 783 void handle_r_debug(const char *switch_value, char *argv0); |
| 783 #endif | 784 #endif |
| 784 | 785 |
| 785 EXTERN_C_END | 786 EXTERN_C_END |
| 786 | 787 |
| 787 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ | 788 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_LDR_H_ */ |
| OLD | NEW |