--emulated-tls explanation?
IGotD-
nise at nise.com
Thu Oct 15 15:09:45 UTC 2020
On Thursday, 15 October 2020 at 01:23:53 UTC, Denis Feklushkin
wrote:
>
> Looks like this problem is solvable: it is possible to push
> through own implementation of (emu)TLS by replacing it in the
> linker (--wrap=). Emutls implementation not tied to anything.
That's the same as implementing your own version so you don't
need the TLS emulation at all. TLS in a static system isn't that
difficult.
https://wiki.osdev.org/Thread_Local_Storage
The only thing you need to implement is __tls_get_addr and
possibly __aeabi_read_tp.
More information about the digitalmars-d-ldc
mailing list