bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

profiling


From: Marcus Brinkmann
Subject: profiling
Date: Mon, 14 May 2001 20:54:21 +0200
User-agent: Mutt/1.3.15i

Hi,

when I try to compile a small test program with -pg, I get
a statically linked exectuable (-lc_p) which is "Killed" in _start (c_p I
have here is without debugging symbols, so I don't know where in _start, but
the address was teh symbol address in objdump --syms output + 2).

When I modify the linking stage to link with -lc rather than -lc_p, I get a
dynamically linked executable which works.  The gmon.out output can be used
with gprof.

If the source was just main(){}, I get a floating point exception in
sysdeps/mach/hurd/profil.c:fetch_samples().
(That's profil_task_get_sampled_pcs failing).  Any non-trivial program
works correctly.

So, there is some issue with the profiling C lib and static libs.

Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]