Thread Local Storage & i386-gnu (Was: Re: [PATCH] Add _dl_init_first to elf/Versions)

Ulrich Drepper drepper@redhat.com
Tue Apr 9 04:31:00 GMT 2002


On Sun, 2002-04-07 at 15:34, Jeroen Dekkers wrote:

> Did you already made up your mind what the way to go is? If I remember
> correctly you suggested in some post to libc-hacker a few months ago
> to implement it using an constant segment register pointing to a word
> which is changed at thread switch and that word is the pointer to the
> thread specific data.

I'm not sure what you are referring to but the way the %gs register
handling will be implemented on Linux/x86 is to have the kernel allocate
a GDT entry and initialize the %gs register for it.  Using the auxiliary
vector size and address of the memory region will be communicated to the
program.  There is no memory allocated, though.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20020409/e74fe1eb/attachment.sig>


More information about the Libc-alpha mailing list