add tls_init_dlopen test and fix tls_align_dlopen.mk so it is run properly
[libc-test] / src / functional / tls_init_dso.c
diff --git a/src/functional/tls_init_dso.c b/src/functional/tls_init_dso.c
new file mode 100644 (file)
index 0000000..eff1a58
--- /dev/null
@@ -0,0 +1,8 @@
+static char buf[] = "foobar";
+__thread char *tls = buf;
+
+char *gettls()
+{
+       return tls;
+}
+