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 22:40:58
On Wed, Apr 25, 2007 at 08:40:47PM +0200, Manuel Bouyer wrote:
> OK, I think I see how to use it. Does anyone knows the magic to
> call a function at program startup, without calling it from main() ?

As this is depending on GCC anyway, I bet -- try __attribute__((__constructor__))

Joerg