From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <33D5CA4A.41C67EA6@iis.fhg.de> Date: Wed, 23 Jul 1997 11:09:30 +0200 From: Stephan Schroepfer Subject: Re: profiling in GCC Richard Holmes wrote: > > Hello, > > I want to use gprof on an executable, but I'm having some trouble. Perhaps > someone can give me some advice. > > I compiled my program using gcc 2.7.2.1 with the -pg flag and made sure > I linked in all the right libraries (I think), such as libm_p rather > than libm. What happens is that as soon as I start my program I get > a "segmentation violation", which doesn't happen if I compile without the > -pg flag. If you are using RH4.1, see http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0463.html for a fix for gprof in binutils-2.7 relative to the Red Hat 4.1 binutils RPM and http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0464.html for a fix for three object files in libc_p.a both posted by David Mosberger-Tang (davidm@azstarnet.com). If you are using RH4.2, it would be nice if you could let me know that (sorry, I currently don't have access to my Alpha, so I'm not able to compare version numbers of 'my' RPMS). Stefan Schroepfer, scr@iis.fhg.de -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com