From 439126ffd669bde03c032216f9bf617c0a40ea8b Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 20 Aug 2011 20:22:04 +0000 Subject: [PATCH] [CRT] Make .CRT sections always read only. svn path=/trunk/; revision=53346 --- reactos/lib/sdk/crt/include/internal/mingw-w64/sect_attribs.h | 2 +- reactos/lib/sdk/crt/startup/cinitexe.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/reactos/lib/sdk/crt/include/internal/mingw-w64/sect_attribs.h b/reactos/lib/sdk/crt/include/internal/mingw-w64/sect_attribs.h index 4d1a24f2173..90dcbc9f8a1 100644 --- a/reactos/lib/sdk/crt/include/internal/mingw-w64/sect_attribs.h +++ b/reactos/lib/sdk/crt/include/internal/mingw-w64/sect_attribs.h @@ -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 diff --git a/reactos/lib/sdk/crt/startup/cinitexe.c b/reactos/lib/sdk/crt/startup/cinitexe.c index 2befe7c94d3..ee441ed77f9 100644 --- a/reactos/lib/sdk/crt/startup/cinitexe.c +++ b/reactos/lib/sdk/crt/startup/cinitexe.c @@ -2,12 +2,8 @@ #include #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);