summaryrefslogtreecommitdiff
path: root/src/zap/zapimage.cpp
diff options
context:
space:
mode:
authorSteve MacLean <sdmaclea@qti.qualcomm.com>2017-04-24 13:51:29 -0400
committerGaurav Khanna <gkhanna@microsoft.com>2017-04-24 10:51:29 -0700
commit3f67146dc1f6ac95ba5cec6d9549d12330d3036c (patch)
tree0c9dd2e772c51947f45eff0792f642bd6632e678 /src/zap/zapimage.cpp
parent69d43a0f8cfe095336b286e7bb892fe49c702e30 (diff)
downloadcoreclr-3f67146dc1f6ac95ba5cec6d9549d12330d3036c.tar.gz
coreclr-3f67146dc1f6ac95ba5cec6d9549d12330d3036c.tar.bz2
coreclr-3f67146dc1f6ac95ba5cec6d9549d12330d3036c.zip
Remove PAL FileAlignment restriction (#10959)
* Remove PAL FileAlignment restriction * Address PR #10959 feedback * Fix amd64 crossgen error * Respond to review feedback * Fix arm32 regression * Prepare to remove VIRTUAL_PAGE_* from map.cpp Also simplify previous section code * Rename function to GetVirtualPageSize()
Diffstat (limited to 'src/zap/zapimage.cpp')
-rw-r--r--src/zap/zapimage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp
index cb69ba9f96..27b46520be 100644
--- a/src/zap/zapimage.cpp
+++ b/src/zap/zapimage.cpp
@@ -1545,8 +1545,8 @@ void ZapImage::OutputTables()
SetSizeOfStackCommit(m_ModuleDecoder.GetSizeOfStackCommit());
}
-#if defined(FEATURE_PAL)
- // PAL library requires native image sections to align to page bounaries.
+#if defined(FEATURE_PAL) && !defined(BIT64)
+ // 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)
if (!IsReadyToRunCompilation())