blob: be0171535bf860ecab1a35d2f42a977c6b09f0f3 [file] [log] [blame]
Rich Felkerdc031ee2015-05-26 03:37:41 -04001#define START "_start"
2#define _dlstart_c _start_c
Rich Felker5552ce52016-01-25 19:29:55 -05003#include "../ldso/dlstart.c"
Rich Felkerdc031ee2015-05-26 03:37:41 -04004
5int main();
6void _init() __attribute__((weak));
7void _fini() __attribute__((weak));
8_Noreturn int __libc_start_main(int (*)(), int, char **,
9 void (*)(), void(*)(), void(*)());
10
Rich Felkerbc9b6ea2015-10-15 17:38:54 -040011__attribute__((__visibility__("hidden")))
Rich Felkerdc031ee2015-05-26 03:37:41 -040012_Noreturn void __dls2(unsigned char *base, size_t *sp)
13{
14 __libc_start_main(main, *sp, (void *)(sp+1), _init, _fini, 0);
15}