From 167d5acc0d83877cb8651571fd27d8367281a5b9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 20 Mar 2005 22:25:59 +0000 Subject: [BZ #786] 2005-03-15 Jakub Jelinek [BZ #786] * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Handle GL(dl_tls_static_nelem) == GL(dl_tls_max_dtv_idx). * elf/Makefile: Add rules to build and run tst-tls15. * elf/tst-tls15.c: New test. * elf/tst-tlsmod15a.c: New file. * elf/tst-tlsmod15b.c: New file. 2005-03-20 Ulrich Drepper * elf/rtld.c (dl_main): Always call init_tls if we have audit modules. --- elf/tst-tlsmod15b.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 elf/tst-tlsmod15b.c (limited to 'elf/tst-tlsmod15b.c') diff --git a/elf/tst-tlsmod15b.c b/elf/tst-tlsmod15b.c new file mode 100644 index 0000000..4f63eab --- /dev/null +++ b/elf/tst-tlsmod15b.c @@ -0,0 +1,17 @@ +#include "tst-tls10.h" + +#ifdef USE_TLS__THREAD +__thread int mod15b_var __attribute__((tls_model("initial-exec"))); + +int +in_dso (void) +{ + return mod15b_var; +} +#else +int +in_dso (void) +{ + return 0; +} +#endif -- cgit v1.1