OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2013 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 #include <stdio.h> |
| 8 |
| 9 #include "native_client/src/untrusted/irt/irt.h" |
| 10 #include "native_client/src/untrusted/irt/irt_interfaces.h" |
| 11 |
| 12 #include "native_client/tests/stacked_irt/irt_trace.h" |
| 13 |
| 14 /* |
| 15 void (*const preinit_array []) (void) |
| 16 __attribute__ ((section(".preinit_array"), |
| 17 aligned(sizeof(void *)))) = { |
| 18 &irt_logged_init |
| 19 }; |
| 20 |
| 21 void (*const fini_array []) (void) |
| 22 __attribute__ ((section(".fini_array"), |
| 23 aligned(sizeof(void *)))) = { |
| 24 &irt_logged_fini |
| 25 }; |
| 26 */ |
| 27 |
| 28 /* |
| 29 struct nacl_irt_module nacl_irt_array[] = { |
| 30 { irt_logged_module_init, irt_logged_module_fini }, |
| 31 { NULL, NULL } |
| 32 }; |
| 33 */ |
| 34 |
| 35 void hello_world(void) { |
| 36 printf("Hello, World!\n"); |
| 37 } |
| 38 |
| 39 int main(int argc, char* argv[]) { |
| 40 hello_world(); |
| 41 return 0; |
| 42 } |
OLD | NEW |