aboutsummaryrefslogtreecommitdiff
path: root/REORG.TODO/elf/tst-tls13.c
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/elf/tst-tls13.c')
-rw-r--r--REORG.TODO/elf/tst-tls13.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/REORG.TODO/elf/tst-tls13.c b/REORG.TODO/elf/tst-tls13.c
new file mode 100644
index 0000000000..b1d303310f
--- /dev/null
+++ b/REORG.TODO/elf/tst-tls13.c
@@ -0,0 +1,28 @@
+/* Check unloading modules with data in static TLS block. */
+#include <dlfcn.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+
+static int
+do_test (void)
+{
+ for (int i = 0; i < 1000;)
+ {
+ printf ("round %d\n",++i);
+
+ void *h = dlopen ("$ORIGIN/tst-tlsmod13a.so", RTLD_LAZY);
+ if (h == NULL)
+ {
+ printf ("cannot load: %s\n", dlerror ());
+ exit (1);
+ }
+
+ dlclose (h);
+ }
+
+ return 0;
+}
+
+#include <support/test-driver.c>