If ldd is run against a DLL or EXE 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") Signed-off-by: Jeremy Drake <cyg...@jdrake.com> --- winsup/utils/mingw/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/utils/mingw/Makefile.am b/winsup/utils/mingw/Makefile.am index d9557d8b50..7f7317ae15 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 \ -- 2.45.1.windows.1