tst-tlsmod16b.c 209 B

1234567891011
  1. #if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
  2. extern __thread int tlsvar __attribute__((tls_model("initial-exec")));
  3. #else
  4. extern int tlsvar;
  5. #endif
  6. void *
  7. in_dso (void)
  8. {
  9. return &tlsvar;
  10. }