While all supported targets currently have native tls support, this may not be the case in the future. In those cases we will need to implement emutls instead. This consists of defining a global variable of type __emutls_control and then call __emutls_get_address for every access. This function is provided by libgcc or libcompiler_rt.
While all supported targets currently have native tls support, this may not be the case in the future. In those cases we will need to implement emutls instead. This consists of defining a global variable of type
__emutls_control
and then call__emutls_get_address
for every access. This function is provided by libgcc or libcompiler_rt.