diff options
Diffstat (limited to '')
-rw-r--r-- | libc-top-half/musl/crt/rcrt1.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libc-top-half/musl/crt/rcrt1.c b/libc-top-half/musl/crt/rcrt1.c new file mode 100644 index 0000000..901dff6 --- /dev/null +++ b/libc-top-half/musl/crt/rcrt1.c @@ -0,0 +1,14 @@ +#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); +} |