Supporting emulated tls

Martin Nowak dawg at dawgfoto.de
Thu Mar 22 21:48:46 PDT 2012


On Mon, 19 Mar 2012 16:57:29 +0100, Johannes Pfau <nospam at example.com>  
wrote:

> The only way to access all loaded library is dl_iterate_phdr. But I'm
> not sure if it provides all necessary information.

Yes it does.

The drawback is that it eagerly allocates the TLS block.
https://github.com/dawgfoto/druntime/blob/SharedRuntime/src/rt/dso.d#L408
https://github.com/dawgfoto/druntime/blob/SharedRuntime/src/rt/dso.d#L459


More information about the D.gnu mailing list