rcrt1.c 335 B

1234567891011121314
  1. #define START "_start"
  2. #define _dlstart_c _start_c
  3. #include "../ldso/dlstart.c"
  4. int main();
  5. weak void _init();
  6. weak void _fini();
  7. int __libc_start_main(int (*)(), int, char **,
  8. void (*)(), void(*)(), void(*)());
  9. hidden void __dls2(unsigned char *base, size_t *sp)
  10. {
  11. __libc_start_main(main, *sp, (void *)(sp+1), _init, _fini, 0);
  12. }