Don't forget the constructors/destructors in crt0.c!

This commit is contained in:
2024-03-30 00:17:54 +01:00
parent 19b2b06e28
commit 35f67a70f5

View File

@@ -2,8 +2,12 @@
extern void exit(int code);
extern int main ();
extern void __libc_init_array();
extern void __libc_fini_array();
void _start() {
__libc_init_array();
int ex = main();
__libc_fini_array();
exit(ex);
}