This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi Amittai,
Have you looked the function _dl_allocate_tls (it is from glibc, but it is compiled to the dynamic linker) ? It not only allocates, but fills the tls.
And you are right, the content of $gs:0x0 is the same address of $gs:0x0. The applications makes an indirect access to the TLS static block using this pointer (if you compile with the option -mno-tls-direct-seg-refs all the access to TLS data are made this way).
Amittai Aviram Graduate Student in Computer Science Yale University 646 483 2639 amittai.aviram@yale.edu http://www.amittai.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |