From 7a56fb906e94afcf95d8d73fbf4f55e45b41d805 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Sat, 3 Dec 2016 19:08:08 +0900 Subject: [PATCH] Make sure we run init for the main binary --- linker/linker.c | 3 +++ 1 file changed, 3 insertions(+) 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};