aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Drake via Cygwin-patches <cygwin-patches@cygwin.com>2024-05-28 10:19:22 -0700
committerTakashi Yano <takashi.yano@nifty.ne.jp>2024-06-03 05:31:18 +0900
commit10b921681108b333d17d8438a45afe6fbc1169dd (patch)
tree359472a1941d8a8bfd59567e1c1b027bd1d30598
parent5a859642f0dc4fb10926fd0cdd2025248a9e18ea (diff)
downloadnewlib-10b921681108b333d17d8438a45afe6fbc1169dd.zip
newlib-10b921681108b333d17d8438a45afe6fbc1169dd.tar.gz
newlib-10b921681108b333d17d8438a45afe6fbc1169dd.tar.bz2
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>
-rw-r--r--winsup/cygwin/release/3.5.43
-rw-r--r--winsup/utils/mingw/Makefile.am1
2 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/release/3.5.4 b/winsup/cygwin/release/3.5.4
index 257e012..2a5f2b1 100644
--- a/winsup/cygwin/release/3.5.4
+++ b/winsup/cygwin/release/3.5.4
@@ -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
diff --git a/winsup/utils/mingw/Makefile.am b/winsup/utils/mingw/Makefile.am
index d9557d8..7f7317a 100644
--- a/winsup/utils/mingw/Makefile.am
+++ b/winsup/utils/mingw/Makefile.am
@@ -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 \