Chromium Code Reviews| Index: src/minsfi/untrusted/start.c |
| diff --git a/src/minsfi/untrusted/start.c b/src/minsfi/untrusted/start.c |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8aa2d250402caaf6ad570ce1a5eb3907ec69795a |
| --- /dev/null |
| +++ b/src/minsfi/untrusted/start.c |
| @@ -0,0 +1,20 @@ |
| +/* |
| + * Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| + * Use of this source code is governed by a BSD-style license that can be |
| + * found in the LICENSE file. |
| + */ |
| + |
| +#include <unistd.h> |
| + |
| +extern int main(int argc, char **argv); |
| + |
| +/* |
| + * This is the true entry point for untrusted code. |
| + * See nacl_startup.h for the layout at the argument pointer. |
|
jvoung (off chromium)
2014/09/10 17:04:29
I don't think nacl_startup.h will describe the sam
dbrazdil
2014/09/10 18:49:47
Done.
|
| + */ |
| +int _start(uint32_t info[]) { |
| + int argc = info[0]; |
| + char **argv = (char**) (info + 1); |
| + |
| + return main(argc, argv); |
| +} |