Rich Felker | dc031ee | 2015-05-26 03:37:41 -0400 | [diff] [blame] | 1 | #define START "_start" |
| 2 | #define _dlstart_c _start_c |
Rich Felker | 5552ce5 | 2016-01-25 19:29:55 -0500 | [diff] [blame] | 3 | #include "../ldso/dlstart.c" |
Rich Felker | dc031ee | 2015-05-26 03:37:41 -0400 | [diff] [blame] | 4 | |
| 5 | int main(); |
| 6 | void _init() __attribute__((weak)); |
| 7 | void _fini() __attribute__((weak)); |
| 8 | _Noreturn int __libc_start_main(int (*)(), int, char **, |
| 9 | void (*)(), void(*)(), void(*)()); |
| 10 | |
Rich Felker | bc9b6ea | 2015-10-15 17:38:54 -0400 | [diff] [blame] | 11 | __attribute__((__visibility__("hidden"))) |
Rich Felker | dc031ee | 2015-05-26 03:37:41 -0400 | [diff] [blame] | 12 | _Noreturn void __dls2(unsigned char *base, size_t *sp) |
| 13 | { |
| 14 | __libc_start_main(main, *sp, (void *)(sp+1), _init, _fini, 0); |
| 15 | } |