diff options
Diffstat (limited to 'crt/rcrt1.c')
-rw-r--r-- | crt/rcrt1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crt/rcrt1.c b/crt/rcrt1.c new file mode 100644 index 00000000..5ac612db --- /dev/null +++ b/crt/rcrt1.c @@ -0,0 +1,15 @@ +#define SHARED +#define START "_start" +#define _dlstart_c _start_c +#include "../src/ldso/dlstart.c" + +int main(); +void _init() __attribute__((weak)); +void _fini() __attribute__((weak)); +_Noreturn int __libc_start_main(int (*)(), int, char **, + void (*)(), void(*)(), void(*)()); + +_Noreturn void __dls2(unsigned char *base, size_t *sp) +{ + __libc_start_main(main, *sp, (void *)(sp+1), _init, _fini, 0); +} |