blob: 0c222e8e9e165924b2425898821211a3c038723d [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/* libpthread sets _dl_error_catch_tsd to point to this function.
2 We define it here instead of in libpthread so t here instead of in libpthread so that it doesn't
3 need to have a TLS segment of its own just for this one pointer. */
4
5void **__libc_dl_error_tsd(void) __attribute__ ((const));
6void ** __attribute__ ((const))
7__libc_dl_error_tsd (void)
8{
9 static __thread void *data __attribute__ ((tls_model ("initial-exec")));
10 return &data;
11}