blob: 308e6bae92b98b9c4666150c78866339c46d3916 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <tls.h>
2
3#if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
4extern __thread int tlsvar __attribute__((tls_model("initial-exec")));
5#else
6extern int tlsvar;
7#endif
8
9void *
10in_dso (void)
11{
12 return &tlsvar;
13}