From 8abcf666cb638152634790a882875f52f7f0432b Mon Sep 17 00:00:00 2001 From: stijn Date: Thu, 12 Jun 2014 17:45:41 +0200 Subject: windows: Enable GC and implement bss start and end symbols The pointers to the bss section are acquired in init.c() by inspecting the PE header. Works for msvc and mingw. --- windows/init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'windows/init.c') diff --git a/windows/init.c b/windows/init.c index a370c464e..57f349ef8 100644 --- a/windows/init.c +++ b/windows/init.c @@ -28,9 +28,12 @@ #include #include +extern void getbss(); + HANDLE hSleepEvent = NULL; void init() { + getbss(); hSleepEvent = CreateEvent(NULL, TRUE, FALSE, FALSE); #ifdef __MINGW32__ putenv("PRINTF_EXPONENT_DIGITS=2"); -- cgit v1.2.3