4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-08 18:19:08 +08:00

Cygwin: disable high-entropy VA for ldh

If ldd is run against a DLL which links to the Cygwin DLL, ldh will end
up loading the Cygwin DLL dynamically, much like cygcheck or strace.

Addresses: https://cygwin.com/pipermail/cygwin/2024-May/255991.html
Fixes: 60675f1a7eb2 ("Cygwin: decouple shared mem regions from Cygwin DLL")
Reviewed-by: Ken Brown <kbrown@cornell.edu>, Takashi Yano <takashi.yano@nifty.ne.jp>
Signed-off-by: Jeremy Drake <cygwin@jdrake.com>
This commit is contained in:
Jeremy Drake via Cygwin-patches 2024-05-28 10:19:22 -07:00 committed by Takashi Yano
parent d49c6a7065
commit 84dff09aa0
2 changed files with 4 additions and 0 deletions

View File

@ -12,3 +12,6 @@ Fixes:
- Fix regression of pthread::once() introduced in 3.5.0 (i.e., the race
issue regarding destroying mutex).
Addresses: https://cygwin.com/pipermail/cygwin/2024-May/255987.html
- Fix a problem that ldd command against cygwin DLLs sometimes hangs.
Addresses: https://cygwin.com/pipermail/cygwin/2024-May/255991.html

View File

@ -38,6 +38,7 @@ cygcheck_LDADD = -lz -lwininet -lshlwapi -lpsapi -lntdll
cygwin_console_helper_SOURCES = cygwin-console-helper.cc
ldh_SOURCES = ldh.cc
ldh_LDFLAGS = ${AM_LDFLAGS} -Wl,--disable-high-entropy-va
strace_SOURCES = \
path.cc \