Make .CRT sections always read only.

svn path=/trunk/; revision=53346
This commit is contained in:
Timo Kreuzer 2011-08-20 20:22:04 +00:00
parent 088f7f2c4f
commit 439126ffd6
2 changed files with 1 additions and 5 deletions

View file

@ -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

View file

@ -2,12 +2,8 @@
#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);