Subject: Runtime loading of libpthread
To: None <current-users@netbsd.org>
From: Ceri Storey <cez@necrofish.org.uk>
List: current-users
Date: 12/21/2003 19:38:44
http://mail-index.netbsd.org/current-users/2003/03/01/0015.html

I don't suppose there's been any advancement on this subject, that is,
that runtime loading of libpthread into a non-threaded application
causes functions which rely on the libc thread-stubs (eg: malloc) to
break?

I'd have expected that the new strongly aliased thread_stubs from
libpthread would be used to override the weakly aliased ones from libc.
However, this doesn't seem to be being done.

Is this to avoid fun problems such as one function which expects the
data to be laid out one way to be called with data laid out another way?
(Eg: like when you find you've got two differing versions of a library
loaded into a process). Or is it just technically infeasible?

Cheers.
-- 
Ceri Storey <cez@necrofish.org.uk>