--emulated-tls explanation?

IGotD- nise at nise.com
Tue Oct 13 11:23:23 UTC 2020

On Tuesday, 13 October 2020 at 11:13:16 UTC, Denis Feklushkin 
> But it is still not clear why static variables are now not 
> "superimposed" on one another at the same addresses.

If you don't have emulated TLS, your build shouldn't even succeed 
if you haven't implemented __tls_get_address. So if you have a 
build that you can test, where does this __tls_get_address come 
from? Another possibility is that you can use the thread pointer 
register directly and not use __aeabi_read_tp.__aeabi_read_tp is 
basically the function that is used for obtaining the thread 
pointer by SW instead for initial exec model.

More information about the digitalmars-d-ldc mailing list