Author: tkreuzer
Date: Sat Aug 20 20:22:04 2011
New Revision: 53346
URL:
http://svn.reactos.org/svn/reactos?rev=53346&view=rev
Log:
[CRT]
Make .CRT sections always read only.
Modified:
trunk/reactos/lib/sdk/crt/include/internal/mingw-w64/sect_attribs.h
trunk/reactos/lib/sdk/crt/startup/cinitexe.c
Modified: trunk/reactos/lib/sdk/crt/include/internal/mingw-w64/sect_attribs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/include/intern…
==============================================================================
--- trunk/reactos/lib/sdk/crt/include/internal/mingw-w64/sect_attribs.h [iso-8859-1]
(original)
+++ trunk/reactos/lib/sdk/crt/include/internal/mingw-w64/sect_attribs.h [iso-8859-1] Sat
Aug 20 20:22:04 2011
@@ -7,7 +7,7 @@
#if defined(_MSC_VER)
#if defined(_M_IA64) || defined(_M_AMD64)
-#define _ATTRIBUTES
+#define _ATTRIBUTES read
#else
#define _ATTRIBUTES read
#endif
Modified: trunk/reactos/lib/sdk/crt/startup/cinitexe.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/startup/cinite…
==============================================================================
--- trunk/reactos/lib/sdk/crt/startup/cinitexe.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/startup/cinitexe.c [iso-8859-1] Sat Aug 20 20:22:04 2011
@@ -2,11 +2,7 @@
#include <sect_attribs.h>
#ifdef _MSC_VER
-#ifdef _M_AMD64
-#pragma comment(linker, "/merge:.CRT=.data")
-#else
#pragma comment(linker, "/merge:.CRT=.rdata")
-#endif
#endif
typedef void (__cdecl *_PVFV)(void);