diff --git a/linker/linker.c b/linker/linker.c index afbefd0f..597e3854 100644 --- a/linker/linker.c +++ b/linker/linker.c @@ -526,6 +526,9 @@ nope: lib->init(); } + if (main_obj->init) { + main_obj->init(); + } { char * args[] = {(char*)end_addr};