From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 89B1D383F230; Wed, 7 Dec 2022 11:40:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89B1D383F230 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670413200; bh=e47atu1NLrNirIh7cE3DZioJjwzCL0V0nYeBcy9Uby0=; h=From:To:Subject:Date:From; b=H3GSzinmW/YBR0nBdLI2Q7l7IcEUip7w9ZHAzHKCrpzW6gXclpcR4NE5msWCb183B o5YGoxNwivyXovW7boLcNX7VnEKw1uFawrJ/jkMz0St4/QWBFrGrwQ/ta4VSCdWBe2 cVHRClSMFdUZpGPMEAcElLIuRwMB9YPS4X3p953E= 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: link mcountFunc.o to libgmon.a X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: e9d843ec74b616bbaaadb4f74b13c13ca1bf8e2a X-Git-Newrev: 95f5b0a62036ad123042914eb07c5cfa8569828c Message-Id: <20221207114000.89B1D383F230@sourceware.org> Date: Wed, 7 Dec 2022 11:40:00 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D95f5b0a6203= 6ad123042914eb07c5cfa8569828c commit 95f5b0a62036ad123042914eb07c5cfa8569828c Author: Corinna Vinschen AuthorDate: Wed Dec 7 12:20:26 2022 +0100 Commit: Corinna Vinschen CommitDate: Wed Dec 7 12:28:33 2022 +0100 Cygwin: link mcountFunc.o to libgmon.a =20 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. =20 Create new target-specific GMON_TARGET_FILES and move mcountFunc.S into it. Add $(GMON_TARGET_FILES) to GMON_FILES. =20 Fixes: 188d5f6c9ad5 ("Cygwin: x86_64: add wmemset assembler entry point= ") Signed-off-by: Corinna Vinschen 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=3Dlibcygwin0.a if TARGET_X86_64 TARGET_FILES=3D \ x86_64/memcpy.s \ - x86_64/memset.s \ - x86_64/mcountFunc.S + x86_64/memset.s endif =20 LIB_FILES=3D \ @@ -354,7 +353,13 @@ DLL_FILES=3D \ window.cc \ winf.cc =20 +if TARGET_X86_64 +GMON_TARGET_FILES =3D \ + x86_64/mcountFunc.S +endif + GMON_FILES=3D \ + $(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