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

Re: memory descriptor of threads



Hello

> Now, if a program contains instructions to explicitly assign a
> variable as TLS, this variable is stored out of the stack?

If you create a simple program which use TLS (declare a variable with 
"__thread" modifier) and then dump the content of /proc/"pid of the 
program"/maps, on RH 9 I see the TLS variable is located on bss section 
of /lib/ld-2.3.2.so. Print the variable address to confirm on your own 
system...

regards

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/