--emulated-tls explanation?

IGotD- nise at nise.com
Tue Oct 13 12:33:57 UTC 2020

On Tuesday, 13 October 2020 at 12:00:34 UTC, Denis Feklushkin 
> It is implemented inside of LLVM?
> Can you provide link to right declaration?
> Google full of "__tls_get_addr()" form

Sorry, I can't because it is a mess. I think that __tls_get_addr 
is connected to an ELF standard for thread-local storage.


Note that the document doesn't include ARM but Itanium and other 
unusual CPUs. However declaration of __tls_get_addr is stated 
there for other CPUs than ARM. I've seen other versions of 
__tls_get_addr out there as well and it can be architecture 
dependent. Also keep in mind that I use ARMv7-ar as reference 
point here, I cannot 100% say that it is the same for Cortex M3. 
The RunTime ABI for ARM


isn't really that helpful either.

More information about the digitalmars-d-ldc mailing list