@@ -45,10 +45,17 @@ int _start() { return -1; } + +#ifdef OF_AMIGAOS_M68K +void +__init_eh(void) +{ +} +#endif struct ObjFWRTBase { struct Library library; void *segList; struct ObjFWRTBase *parent; @@ -594,15 +601,21 @@ va_list args) { return libc.vsnprintf(str, size, fmt, args); } #endif + +int +atexit(void (*function)(void)) +{ + return libc.atexit(function); +} void -abort(void) +exit(int status) { - libc.abort(); + libc.exit(status); OF_UNREACHABLE } #pragma GCC diagnostic push