We studied the TLS Directory to verify whether its structure complies with Microsoft’s specifications, and also examined the default behavior of the TLS callback process.
Our study shows that the structure of TLS Directory discussed here is consistent with the structure of TLS Directory Microsoft specifies even if the structure discussed here contains Rust binaries.
Note that the official Microsoft website describes the structure of TLS Directory.
https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#the-tls-section
Additionally, TLS Callback is provided by default to clean up dropped TLS variables and the like when detaching threads or processes.
Omitted