THREAD_GETMEM support for Hurd in glibc

Florian Weimer fw@deneb.enyo.de
Sat Feb 15 10:12:00 GMT 2020


Is there a way to add fields to the thread descriptor on Hurd?

With NPTL, we have THREAD_GETMEM and THREAD_SETMEM to access
thread-local variables without relying on the platform TLS
implementation.

I want to use this for thread-local data in the dynamic loader,
specifically for the exception handling context.  Using the thread
descriptor or TCB for this seems appropriate because this TLS data is
not supposed to be duplicated in alternative namespaces (because they
share the dynamic loader).



More information about the Libc-alpha mailing list