From 4c533566c2bb94162bcc1f66c5cf9db609e20803 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 17 Jan 2008 20:20:00 +0000 Subject: * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define. * 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. --- elf/tst-tlsmod16a.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 elf/tst-tlsmod16a.c (limited to 'elf/tst-tlsmod16a.c') diff --git a/elf/tst-tlsmod16a.c b/elf/tst-tlsmod16a.c new file mode 100644 index 0000000000..847c8090f5 --- /dev/null +++ b/elf/tst-tlsmod16a.c @@ -0,0 +1,7 @@ +#include + +#if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE +int __thread tlsvar; +#else +int tlsvar; +#endif -- cgit v1.2.3-70-g09d2