Rich Felker | c5e34da | 2013-07-26 01:49:14 -0400 | [diff] [blame] | 1 | #include <features.h> |
2 | |||||
3 | #include "crt_arch.h" | ||||
4 | |||||
5 | int main(); | ||||
6 | void _init() __attribute__((weak)); | ||||
7 | void _fini() __attribute__((weak)); | ||||
8 | _Noreturn int __libc_start_main(int (*)(), int, char **, | ||||
9 | void (*)(), void(*)(), void(*)()); | ||||
10 | |||||
11 | void __cstart(long *p) | ||||
12 | { | ||||
13 | int argc = p[0]; | ||||
14 | char **argv = (void *)(p+1); | ||||
15 | __libc_start_main(main, argc, argv, _init, _fini, 0); | ||||
16 | } |