--emulated-tls explanation?

Denis Feklushkin feklushkin.denis at gmail.com
Tue Oct 13 11:27:45 UTC 2020


On Tuesday, 13 October 2020 at 11:23:23 UTC, IGotD- wrote:
> On Tuesday, 13 October 2020 at 11:13:16 UTC, Denis Feklushkin 
> wrote:
>>
>> 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?

It is provided by "picolibc" library.

Actually it provides __aeabi_read_tp but I wrap it:
https://github.com/denizzzka/d_c_arm_test/blob/master/d/freertos_druntime_backend/external/rt/sections.d#L45


More information about the digitalmars-d-ldc mailing list