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

TLS: defining the problem space

On Fri, 20 Jun 2003, Marcel Moolenaar wrote:
> If pthread defines __tls_get_addr() in complete executables and RTLD
> defines __tls_get_addr() in shared executables, we have duplicate
> definitions for shared executables, with pthread (using dynamic TLS).
> Which takes precedence? [answer: RTLD]

You can have one __tls_get_addr() be a weak definition, and
lib{thr,pthread,c_r} can define a non-weak definition.

BTW, we can probably drop libc_r from the picture (mark it
for deprecation).

Dan Eischen

Visit your host, monkey.org