1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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