about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/tst-tls10.c2
-rw-r--r--elf/tst-tls12.c3
-rw-r--r--elf/tst-tlsmod7.c2
-rw-r--r--elf/tst-tlsmod8.c2
-rw-r--r--elf/tst-tlsmod9.c2
5 files changed, 6 insertions, 5 deletions
diff --git a/elf/tst-tls10.c b/elf/tst-tls10.c
index 75a535788a..dbcc69727c 100644
--- a/elf/tst-tls10.c
+++ b/elf/tst-tls10.c
@@ -1,7 +1,7 @@
 #include "tst-tls10.h"
 
 #ifdef USE_TLS__THREAD
-static __thread int dummy = 12;
+__thread int dummy __attribute__((visibility ("hidden"))) = 12;
 __thread struct A local = { 1, 2, 3 };
 #endif
 
diff --git a/elf/tst-tls12.c b/elf/tst-tls12.c
index c73038b84f..84aa7d35ca 100644
--- a/elf/tst-tls12.c
+++ b/elf/tst-tls12.c
@@ -5,7 +5,8 @@
   if (p->a != S || p->b != S + 1 || p->c != S + 2)	\
     abort ()
 
-int main()
+int
+main (void)
 {
 #ifdef USE_TLS__THREAD
   struct A *p;
diff --git a/elf/tst-tlsmod7.c b/elf/tst-tlsmod7.c
index 18f3befcbb..944b97f9c0 100644
--- a/elf/tst-tlsmod7.c
+++ b/elf/tst-tlsmod7.c
@@ -1,7 +1,7 @@
 #include "tst-tls10.h"
 
 #ifdef USE_TLS__THREAD
-static __thread int dummy = 12;
+__thread int dummy __attribute__((visibility ("hidden"))) = 12;
 __thread struct A a1 = { 4, 5, 6 };
 __thread struct A a2 = { 7, 8, 9 };
 __thread struct A a3 __attribute__((tls_model("initial-exec")))
diff --git a/elf/tst-tlsmod8.c b/elf/tst-tlsmod8.c
index 904c9b282c..c1822fc0cf 100644
--- a/elf/tst-tlsmod8.c
+++ b/elf/tst-tlsmod8.c
@@ -1,7 +1,7 @@
 #include "tst-tls10.h"
 
 #ifdef USE_TLS__THREAD
-static __thread long long dummy = 12;
+__thread long long dummy __attribute__((visibility ("hidden"))) = 12;
 __thread struct A a2 = { 22, 23, 24 };
 __thread struct A a4 __attribute__((tls_model("initial-exec")))
   = { 25, 26, 27 };
diff --git a/elf/tst-tlsmod9.c b/elf/tst-tlsmod9.c
index 7b138f5a05..e124144e47 100644
--- a/elf/tst-tlsmod9.c
+++ b/elf/tst-tlsmod9.c
@@ -1,7 +1,7 @@
 #include "tst-tls10.h"
 
 #ifdef USE_TLS__THREAD
-static __thread int dummy = 12;
+__thread int dummy __attribute__((visibility ("hidden"))) = 12;
 __thread struct A a1 = { 4, 5, 6 };
 __thread struct A a3 __attribute__((tls_model("initial-exec")))
   = { 10, 11, 12 };