Solaris/x86 port - how to get the TLS section?

Jacob Carlborg via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Thu Nov 27 04:23:17 PST 2014


On 2014-11-26 18:33, Kai Nacke wrote:

> That is no problem. The trouble starts because the TLS section is
> allocated for every thread (at least if the thread touches a variable in
> this section). I need to find the start of the section at runtime for a
> thread. The module id helps her because __tls_get_addr() can then be used.

Are you referring what you're supposed to pass to __tls_get_addr when 
generating a call to __tls_get_addr in the compiler?

Or is it in the runtime where you need to access the TLS data to get the 
roots for the GC?

-- 
/Jacob Carlborg


More information about the digitalmars-d-ldc mailing list