TLS: defining the problem space

Daniel Eischen eischen at vigrid.com
Fri Jun 20 13:50:47 PDT 2003


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



More information about the freebsd-threads mailing list