mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
Don't forget the constructors/destructors in crt0.c!
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user