tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dlopen() and libpthread
On Sat, Oct 20, 2012 at 02:12:16AM +0200, Emmanuel Dreyfus wrote:
> Thor Lancelot Simon <tls%panix.com@localhost> wrote:
>
> > > And my question is: why should libpthread be forbidden for dlopen(3)?
> > Because the dynamic loader cannot travel backwards in time and cause libc
> > to have started up, in the past, with threading enabled.
>
> It would be nice if dlopen() could still succeed while not loading
> libraries taggged NOOPEN. If it is not really needed, that works. If the
> library was required, we get a hard failure when a missing symbol is
> called.
In many cases, libpthread effectively provides the same symbols as libc.
You'd have to get pretty lucky for something to be missing instead of
just not-behaving-as-expected.
Thor
Home |
Main Index |
Thread Index |
Old Index