From 3f67146dc1f6ac95ba5cec6d9549d12330d3036c Mon Sep 17 00:00:00 2001 From: Steve MacLean Date: Mon, 24 Apr 2017 13:51:29 -0400 Subject: 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() --- src/zap/zapimage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zap/zapimage.cpp') 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()) -- cgit v1.2.3