public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: document why we can't drop the _pei386_runtime_relocator dummy Date: Mon, 16 May 2022 16:17:38 +0000 (GMT) [thread overview] Message-ID: <20220516161738.276963943405@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=83f8e24f0b4a8cd4e03e86320c2647f4bb6939f5 commit 83f8e24f0b4a8cd4e03e86320c2647f4bb6939f5 Author: Corinna Vinschen <corinna@vinschen.de> Date: Mon May 16 17:54:51 2022 +0200 Cygwin: document why we can't drop the _pei386_runtime_relocator dummy Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- winsup/cygwin/lib/_cygwin_crt0_common.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/lib/_cygwin_crt0_common.cc b/winsup/cygwin/lib/_cygwin_crt0_common.cc index c9e61ea63..6c51422b8 100644 --- a/winsup/cygwin/lib/_cygwin_crt0_common.cc +++ b/winsup/cygwin/lib/_cygwin_crt0_common.cc @@ -170,7 +170,10 @@ _cygwin_crt0_common (MainFunc f, per_process *u) u->pseudo_reloc_end = &__RUNTIME_PSEUDO_RELOC_LIST_END__; u->image_base = &_image_base__; /* This is actually a dummy call to force the linker to load this - symbol for older apps which need it. */ + symbol for older apps which need it. Unfortunately, ld for x86_64 + still emits this symbol when linking against static libs which + require pseudo relocation, so we can't drop this call and the + dummy function just yet. */ _pei386_runtime_relocator (NULL); return 1; }
reply other threads:[~2022-05-16 16:17 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: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220516161738.276963943405@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe 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).