This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 2 problems with sprof


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]