Re: [Mingw-users] __thread not using PE loader support?
- Date: Sun, 11 Nov 2007 07:24:59 +1300
- From: Danny Smith <dannysmith@xxxxxxxxxxxx>
- Subject: Re: [Mingw-users] __thread not using PE loader support?
>
> While working on the TLS support of the boost library I discovered
> that the 4.2.x version of gcc is said to honor the __thread keyword.
>
> However I was not able to grep the "tls_used" keyword anywhere in the
> sources. This is _very_ strange for me.
gcc uses TlsAlloc, TlsSetValue, etc to implement __thread support on
windows
> Does this mean TLS support for mingw does not make use of the windows
> loader support to initialize TLS variables?
>
Yes, that is what it means.
> Somewhere on this list I read that there is believe that the
> gnu linker
> does not yet support this. This is _wrong_! The gnu linker is able to
> do everything that is necessary to correctly initialize a PE image
> (including the TLS directory). I was able to succesfully hook to the
> tls callback function that way. (This is what I really need.)
>
Please share your method of doing this.
Danny
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users