Skip to content

Commit

Permalink
Cygwin: disable high-entropy VA for ldh
Browse files Browse the repository at this point in the history
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: 60675f1 ("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>
  • Loading branch information
Jeremy Drake via Cygwin-patches authored and lazka committed Jun 3, 2024
1 parent 3f5eb36 commit 28d69fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions winsup/utils/mingw/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,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 \
Expand Down

0 comments on commit 28d69fb

Please sign in to comment.