From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 492823858288; Tue, 17 Jan 2023 19:15:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 492823858288 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673982939; bh=lgmyaiqGLOuK2xemYxliBi64aljjKWNiSQR8HUS0NqA=; h=From:To:Subject:Date:From; b=EG5UYL51UbRbcQMxlfnva50ovG1IuARzy4QRgNjMtVgJCPDcdl2RNei2aEpjwaPPl eJb3BqJ9cEPP+3Ai2EzahGwLziEku50cStUJNF5CqhoVoaogg3WSLu+kUQWz0Ixs3S OzYKr6VGB8msoFLJPOib+gKptUsto7+3+Bka/zdU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/cygwin-3_4-branch] Cygwin: disable high-entropy VA for cygcheck and strace X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/cygwin-3_4-branch X-Git-Oldrev: fb16f490bf6e56ace20a7d7ee29a8a46aef3adba X-Git-Newrev: cbc513cf3d32b59aa63bfdd08ae4f121309b78be Message-Id: <20230117191539.492823858288@sourceware.org> Date: Tue, 17 Jan 2023 19:15:39 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dcbc513cf3d3= 2b59aa63bfdd08ae4f121309b78be commit cbc513cf3d32b59aa63bfdd08ae4f121309b78be Author: Corinna Vinschen AuthorDate: Tue Jan 17 17:43:21 2023 +0100 Commit: Corinna Vinschen CommitDate: Tue Jan 17 19:49:39 2023 +0100 Cygwin: disable high-entropy VA for cygcheck and strace =20 It's not a good idea to enable high-entropy VA for tools loading the Cygwin DLL dynamically. The addresses used by HEVA tend to collide with fixed address areas managed by Cygwin. =20 Fixes: 60675f1a7eb2 ("Cygwin: decouple shared mem regions from Cygwin D= LL") Signed-off-by: Corinna Vinschen Diff: --- winsup/utils/mingw/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/winsup/utils/mingw/Makefile.am b/winsup/utils/mingw/Makefile.am index 255fc4651021..edb314d068be 100644 --- a/winsup/utils/mingw/Makefile.am +++ b/winsup/utils/mingw/Makefile.am @@ -32,6 +32,7 @@ cygcheck_SOURCES =3D \ dump_setup.cc \ path.cc cygcheck_CPPFLAGS=3D-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin/include +cygcheck_LDFLAGS =3D -Wl,--disable-high-entropy-va cygcheck_LDADD =3D -lz -lwininet -lpsapi -lntdll =20 cygwin_console_helper_SOURCES =3D cygwin-console-helper.cc @@ -42,6 +43,7 @@ strace_SOURCES =3D \ path.cc \ strace.cc strace_CPPFLAGS=3D-I$(srcdir)/.. -idirafter ${top_srcdir}/cygwin/local_inc= ludes -idirafter ${top_srcdir}/cygwin/include +strace_LDFLAGS =3D -Wl,--disable-high-entropy-va strace_LDADD =3D -lntdll =20 noinst_PROGRAMS =3D path-testsuite