~ubuntu-branches/ubuntu/natty/eglibc/natty-security

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;
}