[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: where to set the initial value to %gs ?



In nptl, I only found one place called TLS_INIT_TP.

__pthread_initialize_minimal()  [nptl/init.c]
    --> __libc_setup_tls() [libc-tls.c]
           --> TLS_INIT_TP() [nptl/sysdeps/i386/tls.h]

%gs is set when the library starts up.  It seems %gs is set only once,
while __pthread_create_2_1() uses the same %gs multiple times?

Do I miss sth? Thanks a lot.

boris

-----Original Message-----
From: Roland McGrath [mailto:roland redhat com]
Sent: 2002?11?27? 11:59
To: phil-list redhat com
Subject: Re: where to set the initial value to %gs ?


The value in the initial thread is set up by the TLS support code.  This is
in the dynamic linker (TLS_INIT_TP), or in statically linked applications
the code in libc-tls.c is what does it.



-- 
Phil-list mailing list
Phil-list redhat com
https://listman.redhat.com/mailman/listinfo/phil-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]