summary refs log tree commit diff
path: root/elf/tst-tlsmod16b.c
blob: 308e6bae92b98b9c4666150c78866339c46d3916 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <tls.h>

#if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
extern __thread int tlsvar __attribute__((tls_model("initial-exec")));
#else
extern int tlsvar;
#endif

void *
in_dso (void)
{
  return &tlsvar;
}