summaryrefslogtreecommitdiff
path: root/src/zap/zapimage.cpp
diff options
context:
space:
mode:
authorEgor Chesakov <Egor.Chesakov@microsoft.com>2018-02-28 17:45:12 -0800
committerEgor Chesakov <Egor.Chesakov@microsoft.com>2018-02-28 17:49:39 -0800
commit448a91d9437ea94387cda57ebe5fa670dfc9ae14 (patch)
treedd730133ae393a97079c348b13328240f68b4ffc /src/zap/zapimage.cpp
parent7493d29441180fa1ffdafd77186f3beebee93515 (diff)
downloadcoreclr-448a91d9437ea94387cda57ebe5fa670dfc9ae14.tar.gz
coreclr-448a91d9437ea94387cda57ebe5fa670dfc9ae14.tar.bz2
coreclr-448a91d9437ea94387cda57ebe5fa670dfc9ae14.zip
Replace ambiguous _WIN64 and BIT64 with _TARGET_64BIT_ macro
Diffstat (limited to 'src/zap/zapimage.cpp')
-rw-r--r--src/zap/zapimage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp
index b2e779cb2a..07e512c49b 100644
--- a/src/zap/zapimage.cpp
+++ b/src/zap/zapimage.cpp
@@ -1243,7 +1243,7 @@ void ZapImage::CalculateZapBaseAddress()
#if defined(_TARGET_X86_)
// We use 30000000 for an exe
baseAddress = 0x30000000;
-#elif defined(_WIN64)
+#elif defined(_TARGET_64BIT_)
// We use 04000000 for an exe
// which is remapped to 0x642`88000000 on x64
baseAddress = 0x04000000;
@@ -1254,7 +1254,7 @@ void ZapImage::CalculateZapBaseAddress()
#if defined(_TARGET_X86_)
// We start a 31000000 for the main assembly with the manifest
baseAddress = 0x31000000;
-#elif defined(_WIN64)
+#elif defined(_TARGET_64BIT_)
// We start a 05000000 for the main assembly with the manifest
// which is remapped to 0x642`8A000000 on x64
baseAddress = 0x05000000;
@@ -1306,7 +1306,7 @@ void ZapImage::CalculateZapBaseAddress()
// upper address range used on 64-bit platforms
//
#if USE_UPPER_ADDRESS
-#if defined(_WIN64)
+#if defined(_TARGET_64BIT_)
if (baseAddress < 0x80000000)
{
if (baseAddress < 0x40000000)
@@ -1520,7 +1520,7 @@ void ZapImage::OutputTables()
{
USHORT dllCharacteristics = 0;
-#ifndef _WIN64
+#ifndef _TARGET_64BIT_
dllCharacteristics |= IMAGE_DLLCHARACTERISTICS_NO_SEH;
#endif
@@ -1550,7 +1550,7 @@ void ZapImage::OutputTables()
SetSizeOfStackCommit(m_ModuleDecoder.GetSizeOfStackCommit());
}
-#if defined(FEATURE_PAL) && !defined(BIT64)
+#if defined(FEATURE_PAL) && !defined(_TARGET_64BIT_)
// To minimize wasted VA space on 32 bit systems align file to page bounaries (presumed to be 4K).
SetFileAlignment(0x1000);
#elif defined(_TARGET_ARM_) && defined(FEATURE_CORESYSTEM)