mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-29 08:11:08 +00:00
4c533566c2
* elf/dl-close.c (_dl_close): Check for it. * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise. (_dl_allocate_static_tls): Likewise. * elf/dl-tls.c (_dl_allocate_tls_init): Likewise. (__tls_get_addr): Protect from race conditions in setting l_tls_offset to it. * elf/tst-tls16.c: New file. * elf/tst-tlsmod16a.c: New file. * elf/tst-tlsmod16b.c: New file. * elf/Makefile: Add rules to build and run tst-tls16.
8 lines
126 B
C
8 lines
126 B
C
#include <tls.h>
|
|
|
|
#if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
|
|
int __thread tlsvar;
|
|
#else
|
|
int tlsvar;
|
|
#endif
|