| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
| 3 * Use of this source code is governed by a BSD-style license that can be | |
| 4 * found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 /* | |
| 8 * The ELF entry point ABI is such that assembly code is required to | |
| 9 * call the entry point. | |
| 10 * See http://code.google.com/p/nativeclient/issues/detail?id=1131 | |
| 11 */ | |
| 12 | |
| 13 /* | |
| 14 * arg 1: 4(%esp), new stack pointer | |
| 15 * arg 2: 8(%esp), entry point | |
| 16 * arg 3: 12(%esp), atexit function, to be left in %edx | |
| 17 */ | |
| 18 .global jump_to_elf_start | |
| 19 jump_to_elf_start: | |
| 20 mov 12(%esp), %edx | |
| 21 mov 8(%esp), %eax | |
| 22 mov 4(%esp), %esp | |
| 23 nacljmp %eax | |
| OLD | NEW |