From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 7534A3858D35; Tue, 17 Jan 2023 19:15:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7534A3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673982921; bh=smfYYgMPiesAdZnXsoLAwK+eQ8aUYXGBMEX3Nw1D47Y=; h=From:To:Subject:Date:From; b=aNEFODA9YTm9jjQa7oJXG73BzvlPNZrKQSoOCrAORxZfetTKc5PV+i1Swy11mX0GB /fF0SdXJqphBpoS4cAFDR+4XBtcfp8SkSyKt8ZYzB+QmFCQqyPFZkoHkQdoTIqT99L +Ny5zcMwSxre8p0FHuMtNW8r59D9fH4VZevBUZo4= 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/main] Cygwin: disable high-entropy VA for cygcheck and strace X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: dc0fe7742b8c35543200391e07eeb386b5d75b0c X-Git-Newrev: 8d318bf142f7d740172099bfa23b6983eb8379ae Message-Id: <20230117191521.7534A3858D35@sourceware.org> Date: Tue, 17 Jan 2023 19:15:21 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D8d318bf142f= 7d740172099bfa23b6983eb8379ae commit 8d318bf142f7d740172099bfa23b6983eb8379ae Author: Corinna Vinschen AuthorDate: Tue Jan 17 17:43:21 2023 +0100 Commit: Corinna Vinschen CommitDate: Tue Jan 17 18:41:10 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