status-go/vendor/modernc.org/libc/musl/crt/rcrt1.c

15 lines
335 B
C
Raw Normal View History

2024-03-07 11:42:38 +00:00
#define START "_start"
#define _dlstart_c _start_c
#include "../ldso/dlstart.c"
int main();
weak void _init();
weak void _fini();
int __libc_start_main(int (*)(), int, char **,
void (*)(), void(*)(), void(*)());
hidden void __dls2(unsigned char *base, size_t *sp)
{
__libc_start_main(main, *sp, (void *)(sp+1), _init, _fini, 0);
}