--emulated-tls explanation?

Denis Feklushkin feklushkin.denis at gmail.com
Tue Oct 13 11:24:02 UTC 2020


On Tuesday, 13 October 2020 at 11:13:16 UTC, Denis Feklushkin 
wrote:

>> If SW call is chosen then __tls_get_addr is the function that 
>> is used in order to obtain the address of a TLS variable. If 
>> emulation is used this function is just forwarded to the 
>> emulation function. It is almost easier to implement 
>> __tls_get_addr yourself and skip the emulation.
>
> Ok, I see in my binary what if I use "--emulated-tls" 3-rd 
> party function __tls_get_address (provided by picolibc) 
> replaced by __emutls_get_address.
>
> But it is still not clear why static variables are now not 
> "superimposed" on one another at the same addresses.

(I don't spawn threads)




More information about the digitalmars-d-ldc mailing list