blob: 14c4a52ab0ca6aba99679d92934cb5e24ccfc699 [file] [log] [blame]
Rich Felkerc5e34da2013-07-26 01:49:14 -04001#include <features.h>
2
3#include "crt_arch.h"
4
5int main();
6void _init() __attribute__((weak));
7void _fini() __attribute__((weak));
8_Noreturn int __libc_start_main(int (*)(), int, char **,
9 void (*)(), void(*)(), void(*)());
10
11void __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}