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: link mcountFunc.o to libgmon.a
Date: Wed,  7 Dec 2022 11:40:00 +0000 (GMT)	[thread overview]
Message-ID: <20221207114000.89B1D383F230@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=95f5b0a62036ad123042914eb07c5cfa8569828c

commit 95f5b0a62036ad123042914eb07c5cfa8569828c
Author:     Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Wed Dec 7 12:20:26 2022 +0100
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Wed Dec 7 12:28:33 2022 +0100

    Cygwin: link mcountFunc.o to libgmon.a
    
    Commit 188d5f6c9ad5 erroneously moved the mcountFunc.S file to the
    TARGET_FILES target, rather than keeping it in GMON_FILES.  The
    result is that the __fentry__ entry point is now entirely undefined,
    so `gcc -pg' is broken.
    
    Create new target-specific GMON_TARGET_FILES and move mcountFunc.S
    into it.  Add $(GMON_TARGET_FILES) to GMON_FILES.
    
    Fixes: 188d5f6c9ad5 ("Cygwin: x86_64: add wmemset assembler entry point")
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/Makefile.am   | 9 +++++++--
 winsup/cygwin/release/3.4.1 | 6 ++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/Makefile.am b/winsup/cygwin/Makefile.am
index 1d57e8492ea6..8ba5ae2717b0 100644
--- a/winsup/cygwin/Makefile.am
+++ b/winsup/cygwin/Makefile.am
@@ -55,8 +55,7 @@ TEST_LIB_NAME=libcygwin0.a
 if TARGET_X86_64
 TARGET_FILES= \
 	x86_64/memcpy.s \
-	x86_64/memset.s \
-	x86_64/mcountFunc.S
+	x86_64/memset.s
 endif
 
 LIB_FILES= \
@@ -354,7 +353,13 @@ DLL_FILES= \
 	window.cc \
 	winf.cc
 
+if TARGET_X86_64
+GMON_TARGET_FILES = \
+	x86_64/mcountFunc.S
+endif
+
 GMON_FILES= \
+	$(GMON_TARGET_FILES) \
 	gmon.c \
 	mcount.c \
 	profil.c
diff --git a/winsup/cygwin/release/3.4.1 b/winsup/cygwin/release/3.4.1
new file mode 100644
index 000000000000..59f6eb013108
--- /dev/null
+++ b/winsup/cygwin/release/3.4.1
@@ -0,0 +1,6 @@
+Bug Fixes
+---------
+
+- Fix an error introduced into the build process, resulting in `gcc -pg'
+  becoming disfunctional.
+  Addresses: https://cygwin.com/pipermail/cygwin/2022-December/252619.html

                 reply	other threads:[~2022-12-07 11:40 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=20221207114000.89B1D383F230@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: 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).