diff options
author | Simon Nattress <nattress@gmail.com> | 2018-10-16 11:07:25 -0700 |
---|---|---|
committer | Simon Nattress <nattress@gmail.com> | 2018-10-16 17:38:45 -0700 |
commit | 75a5f7042e7ce91ba97ae00ccbe53a3c57880fa9 (patch) | |
tree | 0e2046fa564e72c97f6e9f3ddda75f7048b5eb71 | |
parent | 2ad81aeb22b2dda33c2911bb88038403b5ff6d40 (diff) | |
download | coreclr-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.
-rw-r--r-- | src/zap/zapimage.cpp | 4 |
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); |