Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Andreas Johansson <ajo@wopr.campus.luth.se>
Subject: Re: gprof fixes for glibc in RH4.1
Date: Mon, 17 Mar 1997 15:23:25 +0100 (CET)	[thread overview]
Message-ID: <cd6ef66bd31d70c1044a8c3fdad12e4b.axp-list@archive.invalid> (raw)
In-Reply-To: <199703162008.NAA00621@panda.mosberger>

On Sun, 16 Mar 1997, David Mosberger-Tang wrote:

> Some of you reported problems with profiling under RH4.1.  Here is a
> uuencoded file of three fixed object files.  The md5sum output is:
> [...]
> After extracting these files, replace them in your libc_p.a.  E.g.:
> 
> 	ar rv /usr/lib/libc_p.a gmon.po ieee_{s,g}et_fp_control.po
> 
> and then profiling should work again.  Note that the binutils-2.7
> gprof has a bug that sometimes causes a SIGFPE.  See my earlier mail
> for a patch that fixes this.
> 
> Finallly, there is still a problem with mixing profiling and dynamic
> linking.  E.g., with dynamic linking, adding -lm will cause a binary
> that segfaults.  Adding the -static flag should fix this problem for
> now (until a real solution is found).

Thank you for your effort to make profiling work on the old glibc.
However, I can't get profiling to work. With your fixes the binary won't
segfault anymore when started, instead it goes into some eternal loop
mode. This happends before the binary gets to main() (break main; run in
gdb doesn't get to the breakpoint. Also gdb segfaults if I try to
interrupt the process :(   ). I belive I have pretty much tried the
standard 4.1 rpms when doing this. I normally use a newer binutils.

Here is what doesn't work for me:

--------------hello.c-----------------
int main()
{
        printf ("Hello world!\n");
}
-------------------------------------
gcc -static -o hello -pg hello.c
./hello

I would really like profiling to work, I feel somewhat handicapped without
it!

I would appreciate any suggestions.

--

<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se                                       :
: S-mail: Andreas Johansson, Karhusvagen 5  6:618, 977 54 Lulea, SWEDEN :
:     Have you had your dose of 261.62 BogoMIPS today? - Run Alpha!     :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->

--
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

       reply	other threads:[~1997-03-17 14:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199703162008.NAA00621@panda.mosberger>
1997-03-17 14:23 ` Andreas Johansson [this message]
1997-03-19  0:45 gprof fixes for glibc in RH4.1 David Mosberger-Tang
  -- strict thread matches above, loose matches on Subject: below --
1997-03-16 20:08 David Mosberger-Tang
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox