summaryrefslogtreecommitdiff
path: root/src/zap/zapimage.cpp
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2016-09-26 19:58:35 +0900
committerJan Vorlicek <janvorli@microsoft.com>2016-09-26 12:58:35 +0200
commit712cdd405e9aac7fc6806814a2fddd976e84d9df (patch)
tree00677bb0e6b6c0611cd8012e677ba24b620fe732 /src/zap/zapimage.cpp
parentee36d7fbc74d516a30c1969934af5afb7ba5c76d (diff)
downloadcoreclr-712cdd405e9aac7fc6806814a2fddd976e84d9df.tar.gz
coreclr-712cdd405e9aac7fc6806814a2fddd976e84d9df.tar.bz2
coreclr-712cdd405e9aac7fc6806814a2fddd976e84d9df.zip
Check PAL first, and then Windows Phone (#7354)
Diffstat (limited to 'src/zap/zapimage.cpp')
-rw-r--r--src/zap/zapimage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp
index f7737bae3f..8f2bc78f5b 100644
--- a/src/zap/zapimage.cpp
+++ b/src/zap/zapimage.cpp
@@ -1705,16 +1705,16 @@ void ZapImage::OutputTables()
SetSizeOfStackCommit(m_ModuleDecoder.GetSizeOfStackCommit());
}
-#if defined(_TARGET_ARM_) && defined(FEATURE_CORECLR) && defined(FEATURE_CORESYSTEM)
+#if defined(FEATURE_PAL)
+ // PAL library requires native image sections to align to page bounaries.
+ SetFileAlignment(0x1000);
+#elif defined(_TARGET_ARM_) && defined(FEATURE_CORECLR) && defined(FEATURE_CORESYSTEM)
if (!IsReadyToRunCompilation())
{
// On ARM CoreSys builds, crossgen will use 4k file alignment, as requested by Phone perf team
// to improve perf on phones with compressed system partitions.
SetFileAlignment(0x1000);
}
-#elif defined(FEATURE_PAL)
- // PAL library requires native image sections to align to page bounaries.
- SetFileAlignment(0x1000);
#endif
}