projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2adbec
)
[MINGW]
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Fri, 26 Nov 2010 22:52:46 +0000
(22:52 +0000)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Fri, 26 Nov 2010 22:52:46 +0000
(22:52 +0000)
Merge .CRT section into .rdata when linking to mingw lib. This silences the warnings about uninitialized constructors.
svn path=/branches/cmake-bringup/; revision=49799
lib/3rdparty/mingw/cinitexe.c
patch
|
blob
|
history
diff --git
a/lib/3rdparty/mingw/cinitexe.c
b/lib/3rdparty/mingw/cinitexe.c
index
b69eebe
..
b7a957f
100644
(file)
--- a/
lib/3rdparty/mingw/cinitexe.c
+++ b/
lib/3rdparty/mingw/cinitexe.c
@@
-2,6
+2,10
@@
#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 };
_CRTALLOC(".CRT$XCA") _PVFV __xc_a[] = { NULL };