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 [EMAIL PROTECTED]
Marcus Brinkmann              GNU    http://www.gnu.org    [EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.marcus-brinkmann.de

_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to