aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Drake <cygwin@jdrake.com>2025-07-09 11:06:20 -0700
committerJeremy Drake <cygwin@jdrake.com>2025-07-16 10:22:35 -0700
commit78b17c4d5110664403dee92ec54b2c4b0c68242c (patch)
tree717e230c71172bcb408ba00b58ce35e2c5424669
parent2abb929f0ad26dad05cbfde18fa54098dc79bbb7 (diff)
downloadnewlib-78b17c4d5110664403dee92ec54b2c4b0c68242c.zip
newlib-78b17c4d5110664403dee92ec54b2c4b0c68242c.tar.gz
newlib-78b17c4d5110664403dee92ec54b2c4b0c68242c.tar.bz2
Cygwin: testsuite: link cygload with --disable-high-entropy-va
This is a mingw program meant to demonstrate loading the Cygwin dll in a non-Cygwin process, but the Cygwin dll still initializes the cygheap on load in that case. Without --disable-high-entropy-va, Windows may occasionally locate the PEB, TEB, and/or stacks in the address space that Cygwin tries to reserve for the cygheap, resulting in a failure. Fixes: 60675f1a7eb2 ("Cygwin: decouple shared mem regions from Cygwin DLL") Signed-off-by: Jeremy Drake <cygwin@jdrake.com>
-rw-r--r--winsup/testsuite/mingw/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/testsuite/mingw/Makefile.am b/winsup/testsuite/mingw/Makefile.am
index 25300a1..775d617 100644
--- a/winsup/testsuite/mingw/Makefile.am
+++ b/winsup/testsuite/mingw/Makefile.am
@@ -23,7 +23,7 @@ cygrun_SOURCES = \
cygload_SOURCES = \
../winsup.api/cygload.cc
-cygload_LDFLAGS=-static -Wl,-e,cygloadCRTStartup
+cygload_LDFLAGS=-static -Wl,-e,cygloadCRTStartup -Wl,--disable-high-entropy-va
winchild_SOURCES = \
../winsup.api/posix_spawn/winchild.c