Author: tkreuzer
Date: Fri Nov 26 22:52:46 2010
New Revision: 49799
URL:
http://svn.reactos.org/svn/reactos?rev=49799&view=rev
Log:
[MINGW]
Merge .CRT section into .rdata when linking to mingw lib. This silences the warnings about
uninitialized constructors.
Modified:
branches/cmake-bringup/lib/3rdparty/mingw/cinitexe.c
Modified: branches/cmake-bringup/lib/3rdparty/mingw/cinitexe.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/3rdparty/ming…
==============================================================================
--- branches/cmake-bringup/lib/3rdparty/mingw/cinitexe.c [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/3rdparty/mingw/cinitexe.c [iso-8859-1] Fri Nov 26 22:52:46
2010
@@ -1,6 +1,10 @@
#include <stdio.h>
#include <internal.h>
#include <sect_attribs.h>
+
+#ifdef _MSC_VER
+#pragma comment(linker, "/merge:.CRT=.rdata")
+#endif
_CRTALLOC(".CRT$XIA") _PVFV __xi_a[] = { NULL };
_CRTALLOC(".CRT$XIZ") _PVFV __xi_z[] = { NULL };