X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ffunctional%2Ftls_init_dso.c;fp=src%2Ffunctional%2Ftls_init_dso.c;h=eff1a586ab1e1b0ff157429f2caa243743b76a25;hb=164c1f02358efafd3cd23697d890c579c8733e65;hp=0000000000000000000000000000000000000000;hpb=ff1a08c16ea49fa2bd3260a3b327b5dcaa5d13a6;p=libc-test diff --git a/src/functional/tls_init_dso.c b/src/functional/tls_init_dso.c new file mode 100644 index 0000000..eff1a58 --- /dev/null +++ b/src/functional/tls_init_dso.c @@ -0,0 +1,8 @@ +static char buf[] = "foobar"; +__thread char *tls = buf; + +char *gettls() +{ + return tls; +} +