| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2012 The Chromium 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 <stdint.h> |
| 8 |
| 7 #include "native_client/src/include/elf32.h" | 9 #include "native_client/src/include/elf32.h" |
| 8 #include "native_client/src/include/elf_auxv.h" | 10 #include "native_client/src/include/elf_auxv.h" |
| 9 #include "native_client/src/include/nacl_macros.h" | 11 #include "native_client/src/include/nacl_macros.h" |
| 10 #include "native_client/src/untrusted/nacl/nacl_startup.h" | 12 #include "native_client/src/untrusted/nacl/nacl_startup.h" |
| 11 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.h" | 13 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.h" |
| 12 | 14 |
| 13 | 15 |
| 14 /* | 16 /* |
| 15 * This is the true entry point for untrusted code. | 17 * This is the true entry point for untrusted code. |
| 16 * See nacl_startup.h for the layout at the argument pointer. | 18 * See nacl_startup.h for the layout at the argument pointer. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 * seems brittle (what if the bitcode link was separated from translation). | 50 * seems brittle (what if the bitcode link was separated from translation). |
| 49 * Thus we always wrap _start, even if there is no IRT auxv entry. | 51 * Thus we always wrap _start, even if there is no IRT auxv entry. |
| 50 */ | 52 */ |
| 51 | 53 |
| 52 /* | 54 /* |
| 53 * Call the user entry point function. It should not return. | 55 * Call the user entry point function. It should not return. |
| 54 * TODO(sehr): Find a way to ensure this is invoked via a tail call. | 56 * TODO(sehr): Find a way to ensure this is invoked via a tail call. |
| 55 */ | 57 */ |
| 56 _start(info); | 58 _start(info); |
| 57 } | 59 } |
| OLD | NEW |