From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id D38B8382DE15; Fri, 28 Oct 2022 14:27:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D38B8382DE15 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666967276; bh=z8r01QO6rbhn3dqwuvB68gqA2lhOkachhrlUZ4Ge6cc=; h=From:To:Subject:Date:From; b=g+y2g1FeOuTZzeDsJPEZL+TpzpCvhIh1SxDpJ77RLj1yK28nHbDccV1O6OV3XfPER J0emFxEZl1IF3+5FoaOnkkm70w9adSLF7iApmScSE4bJjtg6a8bgtyJ1dHm9M1p+rh hG2Xgf9Gc7xbAdixFC+okTp5LiTJdBkmkE8XrvGw= 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: Enable dynamicbase on the Cygwin DLL by default X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: a3f1eff3882d54a0be9fa0f5114fde351ea6941e X-Git-Newrev: 943433b00cacdde0cb9507d0178770a2fb67bd71 Message-Id: <20221028142756.D38B8382DE15@sourceware.org> Date: Fri, 28 Oct 2022 14:27:56 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D943433b00ca= cdde0cb9507d0178770a2fb67bd71 commit 943433b00cacdde0cb9507d0178770a2fb67bd71 Author: Corinna Vinschen Date: Fri Oct 28 10:00:48 2022 +0200 Cygwin: Enable dynamicbase on the Cygwin DLL by default =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/Makefile.am b/winsup/cygwin/Makefile.am index 024634d28..c321a38fe 100644 --- a/winsup/cygwin/Makefile.am +++ b/winsup/cygwin/Makefile.am @@ -564,7 +564,8 @@ $(PRE_DLL_NAME): $(LDSCRIPT) libdll.a $(VERSION_OFILES)= $(LIBSERVER)\ $(newlib_build)/libm.a $(newlib_build)/libc.a $(AM_V_CXXLD)$(CXX) $(CXXFLAGS) \ -mno-use-libstdc-wrappers \ - -Wl,--gc-sections -nostdlib -Wl,-T$(LDSCRIPT) -static \ + -Wl,--gc-sections -nostdlib -Wl,-T$(LDSCRIPT) \ + -Wl,--dynamicbase -static \ -Wl,--heap=3D0 -Wl,--out-implib,cygdll.a -shared -o $@ \ -e @DLL_ENTRY@ $(DEF_FILE) \ -Wl,-whole-archive libdll.a -Wl,-no-whole-archive \