wasi-libc/libc-top-half/musl/crt/rcrt1.c
Dan Gohman d4db3fa212 Update to musl 1.1.23.
See the WHATSNEW file for details; among other things, this contains new
math library implementation for log/exp/pow.
2019-08-07 17:53:41 -07:00

15 lines
335 B
C

#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);
}