tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: fixing libpthread noload, another approach



On Sun, Feb 03, 2013 at 07:28:14AM +0100, Emmanuel Dreyfus wrote:
> Here is another proposal: modify dlopen() so that instead of raising an
> error when encountering an object tagged with NOLOAD, it just resolves
> its symbol to an error stub. Therefore we are able to dlopen() a DSO
> linked with -lpthread, but libpthread is not loaded. If we do not use
> thread-related stuff, everything is fine, but if we call a function from
> libpthread, we abort with a diagnostic.

This is even more messy than the last approach. Seriously, changing rtld
is completely out of the question.

Joerg


Home | Main Index | Thread Index | Old Index