1#include <stdio.h>
2
3static int __thread tbaz __attribute__ ((tls_model ("local-dynamic"))) = 42;
4
5void
6setter2 (int a)
7{
8 tbaz = a;
9}
10
11int
12baz (void)
13{
14 printf (format: "&tbaz=%p\n", &tbaz);
15 return tbaz;
16}
17

source code of glibc/elf/tst-tls19mod3.c