Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/local_includes/memory_layout.h')
-rw-r--r--winsup/cygwin/local_includes/memory_layout.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/winsup/cygwin/local_includes/memory_layout.h b/winsup/cygwin/local_includes/memory_layout.h
index 639ff2546..22e68b93e 100644
--- a/winsup/cygwin/local_includes/memory_layout.h
+++ b/winsup/cygwin/local_includes/memory_layout.h
@@ -32,6 +32,16 @@ details. */
dynamicbase is accidentally not set in the PE/COFF header of the DLL. */
#define CYGWIN_DLL_ADDRESS 0x180040000UL
+/* New with ASLR: We need a fixed place for the global shared memory areas.
+ Prior to ASLR, the addresses were relative to the address the Cygwin DLL
+ was loaded to. */
+#define SHARED_REGIONS_ADDRESS_LOW 0x1f0000000UL
+#define CYGWIN_REGION_ADDRESS 0x1f0000000UL
+#define USER_REGION_ADDRESS 0x1f2000000UL
+#define PINFO_REGION_ADDRESS 0x1f4000000UL
+#define SHARED_CONSOLE_REGION_ADDRESS 0x1f6000000UL
+#define SHARED_REGIONS_ADDRESS_HIGH 0x200000000UL
+
/* Rebased DLLs are located in this 16 Gigs arena. Will be kept for
backward compatibility. */
#define REBASED_DLL_STORAGE_LOW 0x200000000UL