From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22032 invoked by alias); 17 May 2003 16:56:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 21995 invoked by uid 71); 17 May 2003 16:56:01 -0000 Date: Sat, 17 May 2003 16:56:00 -0000 Message-ID: <20030517165601.21993.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "John David Anglin" Subject: Re: target/6428: [hppa*-hp-hpux] gmon.out is not generated when application to be profiled is linked with shared libgcc Reply-To: "John David Anglin" X-SW-Source: 2003-05/txt/msg01998.txt.bz2 List-Id: The following reply was made to PR target/6428; it has been noted by GNATS. From: "John David Anglin" To: dhazeghi@yahoo.com (Dara Hazeghi) Cc: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Subject: Re: target/6428: [hppa*-hp-hpux] gmon.out is not generated when application to be profiled is linked with shared libgcc Date: Sat, 17 May 2003 12:46:39 -0400 (EDT) > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- > trail&database=gcc&pr=6428 > > Hello, > > this bug was first mentioned a good while back, but there have been no > updates in the audit trail. Has there been any progress on this issue? > Is the bug still present in current gcc versions? Thanks, Yes, it still affects the current versions. G++ by default uses the shared version of libgcc. It has a hardcoded dependence on the shared non-profiled version of libc. So, when you compile and link with "-p" or "-pg", the linking process resolves libc routines from the non-profiled version of libc. This also would be an issue if any other shared library with a dependence on libc was linked into the application. The simplest work around is for the user to link with -static when using -p or -pg. I had debated a doc update but haven't done it. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)