Subject: Re: reference to ___tls_get_addr
To: None <tech-toolchain@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-toolchain
Date: 04/25/2007 20:09:35
On Wed, Apr 25, 2007 at 07:57:41PM +0200, Manuel Bouyer wrote:
> But I suspect this is because there is:
> static __thread xc_error last_error = { XC_ERROR_NONE, ""};
> static __thread char errbuf[32];
> in xc_private.c
>
> is there a way to fix/workaroud this ? This is NetBSD 4.0_BETA2
You can change it to use pthread_getspecific/pthread_setspecific, but
that is the only easy way to avoid implementing TLS.
Joerg