summaryrefslogtreecommitdiff
path: root/src/zap
diff options
context:
space:
mode:
authorSimon Nattress <nattress@gmail.com>2018-10-16 11:07:25 -0700
committerSimon Nattress <nattress@gmail.com>2018-10-16 17:38:45 -0700
commit75a5f7042e7ce91ba97ae00ccbe53a3c57880fa9 (patch)
tree0e2046fa564e72c97f6e9f3ddda75f7048b5eb71 /src/zap
parent2ad81aeb22b2dda33c2911bb88038403b5ff6d40 (diff)
downloadcoreclr-75a5f7042e7ce91ba97ae00ccbe53a3c57880fa9.tar.gz
coreclr-75a5f7042e7ce91ba97ae00ccbe53a3c57880fa9.tar.bz2
coreclr-75a5f7042e7ce91ba97ae00ccbe53a3c57880fa9.zip
High entropy ASLR for native images
Enable high entropy for 64bit native images, which expands the set of virtual address bases a native image can be loaded at.
Diffstat (limited to 'src/zap')
-rw-r--r--src/zap/zapimage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp
index a05179aa1c..073367d269 100644
--- a/src/zap/zapimage.cpp
+++ b/src/zap/zapimage.cpp
@@ -1539,6 +1539,10 @@ void ZapImage::OutputTables()
#endif // _DEBUG
{
dllCharacteristics |= IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE;
+#ifdef _TARGET_64BIT_
+ // Large address aware, required for High Entry VA, is always enabled for 64bit native images.
+ dllCharacteristics |= IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA;
+#endif
}
SetDllCharacteristics(dllCharacteristics);