2 problems with sprof

H . J . Lu hjl@lucon.org
Thu Sep 20 08:08:00 GMT 2001


On Thu, Sep 20, 2001 at 12:20:51AM -0700, Ulrich Drepper wrote:
> "H . J . Lu" <hjl@lucon.org> writes:
> 
> > 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.
> 
> Well, I'd like something more general.  The same flag might be useful
> in certain situations.  So it would be rather something like
> RTLD_UNDEF_OK or so.

How about not calling init/fini? It is not clear if RTLD_UNDEF_OK
covers it. Should we have another one, RTLD_NO_INIT_FINI? Also do
we need another one, not to check DT_NEEDED? I think we need a list
for new options. I can implement them. It shouldn't be too hard.


H.J.



More information about the Libc-alpha mailing list