• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <features.h>
2 #include "libc.h"
3 
4 int main();
5 weak void _init();
6 weak void _fini();
7 int __libc_start_main(int (*)(), int, char **,
8 	void (*)(), void(*)(), void(*)());
9 
10 /*
11  * TRUSTY - renamed from _start_c because it can be invoked directly without an
12  * ASM stub. The stack will be aligned according to the ABI, and the argument
13  * will be in the expected register.
14  */
_start(long * p)15 void _start(long *p)
16 {
17 	int argc = p[0];
18 	char **argv = (void *)(p+1);
19 	__libc_start_main(main, argc, argv, _init, _fini, 0);
20 }
21