Files
sisungo 8043aba13f feat: rename weak in features.h to __weak
The internal `features.h` defines macro `weak`, and it prevents us porting
third-party code including the identifier.
2026-02-22 13:42:41 +08:00

15 lines
339 B
C

#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);
}