
4 Aug
2004
4 Aug
'04
7:26 a.m.
On Wed, 04 Aug 2004 08:56:51 +0200 Bronek Kozicki <brok@rubikon.pl> wrote:
Roland wrote:
I did not yet test this, but are we overriding the _tls_used when simply referencing it? We only rely on the linkers ability do define it when needed.
We are not. But Holger Grund proposed solution that worked on MSVC6 (at least on Windows Server 2003), and that solution was just defining symbol _tls_used instead of asking compiler to create it. EXE did not contain .tls section at all in this case.
I am a little afraid, that defining _tls_used ourselfes, we could messs up with the copilers ability to handle __declspec(thread) correctly. Did you any testing on this so far? Roland