public inbox for
help / color / mirror / Atom feed
From: Corinna Vinschen <>
Subject: [newlib-cygwin] Cygwin: Enable dynamicbase on the Cygwin DLL by default
Date: Fri, 28 Oct 2022 14:27:56 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=943433b00cacdde0cb9507d0178770a2fb67bd71

commit 943433b00cacdde0cb9507d0178770a2fb67bd71
Author: Corinna Vinschen <>
Date:   Fri Oct 28 10:00:48 2022 +0200

    Cygwin: Enable dynamicbase on the Cygwin DLL by default
    Signed-off-by: Corinna Vinschen <>

 winsup/cygwin/ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/ b/winsup/cygwin/
index 024634d28..c321a38fe 100644
--- a/winsup/cygwin/
+++ b/winsup/cygwin/
@@ -564,7 +564,8 @@ $(PRE_DLL_NAME): $(LDSCRIPT) libdll.a $(VERSION_OFILES) $(LIBSERVER)\
 		  $(newlib_build)/libm.a $(newlib_build)/libc.a
 	-mno-use-libstdc-wrappers \
-	-Wl,--gc-sections -nostdlib -Wl,-T$(LDSCRIPT) -static \
+	-Wl,--gc-sections -nostdlib -Wl,-T$(LDSCRIPT) \
+	-Wl,--dynamicbase -static \
 	-Wl,--heap=0 -Wl,--out-implib,cygdll.a -shared -o $@ \
 	-e @DLL_ENTRY@ $(DEF_FILE) \
 	-Wl,-whole-archive libdll.a -Wl,-no-whole-archive \

                 reply	other threads:[~2022-10-28 14:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).