[newlib-cygwin] Cygwin: testsuite: link cygload with --disable-high-entropy-va
Jeremy Drake
jeremyd2019@sourceware.org
Wed Jul 16 17:23:07 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=78b17c4d5110664403dee92ec54b2c4b0c68242c
commit 78b17c4d5110664403dee92ec54b2c4b0c68242c
Author: Jeremy Drake <cygwin@jdrake.com>
Date: Wed Jul 9 11:06:20 2025 -0700
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>
Diff:
---
winsup/testsuite/mingw/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/testsuite/mingw/Makefile.am b/winsup/testsuite/mingw/Makefile.am
index 25300a15d..775d617ae 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
More information about the Cygwin-cvs
mailing list