github.com/afumu/libc@v0.0.6/musl/crt/crt1.c (about) 1 #include <features.h> 2 #include "libc.h" 3 4 #define START "_start" 5 6 #include "crt_arch.h" 7 8 int main(); 9 weak void _init(); 10 weak void _fini(); 11 int __libc_start_main(int (*)(), int, char **, 12 void (*)(), void(*)(), void(*)()); 13 14 void _start_c(long *p) 15 { 16 int argc = p[0]; 17 char **argv = (void *)(p+1); 18 __libc_start_main(main, argc, argv, _init, _fini, 0); 19 }