2 problems with sprof
H . J . Lu
hjl@lucon.org
Thu Sep 20 00:14:00 GMT 2001
On Wed, Sep 19, 2001 at 10:12:23PM -0700, Ulrich Drepper wrote:
> "H . J . Lu" <hjl@lucon.org> writes:
>
> > What did you mean by that? sprof failed because dynfunc.so has some
> > unresolved symbols. Did you mean only DSOs without unresolved symbols
> > can be profiled?
>
> I was referring to the other thing you mentioned. Must have left the
> wrong quote in. As for the undefined symbol, haven't looked at it yet.
I think it is wrong for sprof to call dlopen with RTLD_LAZY. I think
we should add RTLD_PROF for sprof. It should treat undefined symbols
as weak if we have to resolve them and also it shouldn't call init/fini
functions.
H.J.
More information about the Libc-alpha
mailing list