Linker Tools Error LNK2014

TLS relative fixup overflow; .tls section ('section') is too large

The section created for thread-local storage (.tls) is too large. TLS data must fit in 32 KB. This data is created using the __declspec(thread) storage class modifier in the declaration and definition of that data.

To fix by using the following possible solutions

  1. Reduce the amount of thread-local data in the code.

  2. Use dynamic TLS by calling functions such as TlsAlloc and TlsFree.