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 helper functions to deal with elf images | 8 * NaCl helper functions to deal with elf images |
9 */ | 9 */ |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "native_client/src/include/elf_constants.h" | 21 #include "native_client/src/include/elf_constants.h" |
22 #include "native_client/src/include/elf.h" | 22 #include "native_client/src/include/elf.h" |
23 #include "native_client/src/include/nacl_macros.h" | 23 #include "native_client/src/include/nacl_macros.h" |
24 #include "native_client/src/include/nacl_platform.h" | 24 #include "native_client/src/include/nacl_platform.h" |
25 | 25 |
26 #include "native_client/src/shared/gio/gio.h" | 26 #include "native_client/src/shared/gio/gio.h" |
27 #include "native_client/src/shared/platform/nacl_check.h" | 27 #include "native_client/src/shared/platform/nacl_check.h" |
28 #include "native_client/src/shared/platform/nacl_host_desc.h" | 28 #include "native_client/src/shared/platform/nacl_host_desc.h" |
29 #include "native_client/src/shared/platform/nacl_log.h" | 29 #include "native_client/src/shared/platform/nacl_log.h" |
30 | 30 |
| 31 #include "native_client/src/trusted/desc/nacl_desc_base.h" |
31 #include "native_client/src/trusted/desc/nacl_desc_effector_trusted_mem.h" | 32 #include "native_client/src/trusted/desc/nacl_desc_effector_trusted_mem.h" |
32 #include "native_client/src/trusted/fault_injection/fault_injection.h" | 33 #include "native_client/src/trusted/fault_injection/fault_injection.h" |
33 #include "native_client/src/trusted/perf_counter/nacl_perf_counter.h" | 34 #include "native_client/src/trusted/perf_counter/nacl_perf_counter.h" |
34 #include "native_client/src/trusted/service_runtime/elf_util.h" | 35 #include "native_client/src/trusted/service_runtime/elf_util.h" |
35 #include "native_client/src/trusted/service_runtime/include/bits/mman.h" | 36 #include "native_client/src/trusted/service_runtime/include/bits/mman.h" |
36 #include "native_client/src/trusted/service_runtime/nacl_config.h" | 37 #include "native_client/src/trusted/service_runtime/nacl_config.h" |
37 #include "native_client/src/trusted/service_runtime/nacl_text.h" | 38 #include "native_client/src/trusted/service_runtime/nacl_text.h" |
38 #include "native_client/src/trusted/service_runtime/nacl_valgrind_hooks.h" | 39 #include "native_client/src/trusted/service_runtime/nacl_valgrind_hooks.h" |
39 #include "native_client/src/trusted/service_runtime/sel_memory.h" | 40 #include "native_client/src/trusted/service_runtime/sel_memory.h" |
40 #include "native_client/src/trusted/service_runtime/sys_memory.h" | 41 #include "native_client/src/trusted/service_runtime/sys_memory.h" |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 } | 1013 } |
1013 | 1014 |
1014 void NaClElfImageDelete(struct NaClElfImage *image) { | 1015 void NaClElfImageDelete(struct NaClElfImage *image) { |
1015 free(image); | 1016 free(image); |
1016 } | 1017 } |
1017 | 1018 |
1018 | 1019 |
1019 uintptr_t NaClElfImageGetEntryPoint(struct NaClElfImage *image) { | 1020 uintptr_t NaClElfImageGetEntryPoint(struct NaClElfImage *image) { |
1020 return image->ehdr.e_entry; | 1021 return image->ehdr.e_entry; |
1021 } | 1022 } |
OLD | NEW |