PECompact Documentation

TLS Callbacks

Back to Index ] [ Back to Bitsum Technologies ]


Thread-Local-Storage Callbacks are a seldom used feature of Portable Executables. Many compilers and linkers, including Microsoft's, do not fully support TLS callbacks, or have a buggy implementation. Furthermore, they are not universally supported on all Windows platforms. Win9x does not execute them under all conditions (i.e. program load), while WinNT does.

PECompact v2.7+ fully supports TLS callbacks. One advantage of using PECompact is that TLS callbacks will be executed in a universally consistent way.