Web lists-archives.org

[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.

Does this mean TLS support for mingw does not make use of the windows
loader support to initialize TLS variables?

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.)

I would be very glad if someone on this list can give me an update
on the matter, because when putting my code into the boost library I
want to do it in such a manner it will be compatible with gcc/g++.

Roland aka speedsnail

-------------------------------------------------------------------------
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