summary refs log tree commit diff
path: root/htl
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-10 23:45:23 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-10 23:45:23 +0000
commitfba7fc5a21f5c56e4878228d2311d040e5b84653 (patch)
treeb89150c1dfec0205b7d4996d776d37fb177e2ec4 /htl
parent8ba6ad703cb38ec57cdb473650ac289e5f8496d5 (diff)
downloadglibc-fba7fc5a21f5c56e4878228d2311d040e5b84653.tar.gz
glibc-fba7fc5a21f5c56e4878228d2311d040e5b84653.tar.xz
glibc-fba7fc5a21f5c56e4878228d2311d040e5b84653.zip
htl C11 threads: Avoid pthread_ symbols visibility in static library
Diffstat (limited to 'htl')
-rw-r--r--htl/pt-create.c2
-rw-r--r--htl/pt-detach.c2
-rw-r--r--htl/pt-exit.c2
-rw-r--r--htl/pt-join.c2
-rw-r--r--htl/pt-self.c2
-rw-r--r--htl/pt-setcancelstate.c2
-rw-r--r--htl/pt-setcanceltype.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/htl/pt-create.c b/htl/pt-create.c
index 090d394f53..f501a12017 100644
--- a/htl/pt-create.c
+++ b/htl/pt-create.c
@@ -89,7 +89,7 @@ __pthread_create (pthread_t * thread, const pthread_attr_t * attr,
 
   return err;
 }
-strong_alias (__pthread_create, pthread_create)
+weak_alias (__pthread_create, pthread_create)
 
 /* Internal version of pthread_create.  See comment in
    pt-internal.h.  */
diff --git a/htl/pt-detach.c b/htl/pt-detach.c
index 3d8e3ad0fe..175560667a 100644
--- a/htl/pt-detach.c
+++ b/htl/pt-detach.c
@@ -77,4 +77,4 @@ __pthread_detach (pthread_t thread)
 
   return err;
 }
-strong_alias (__pthread_detach, pthread_detach)
+weak_alias (__pthread_detach, pthread_detach)
diff --git a/htl/pt-exit.c b/htl/pt-exit.c
index 94e3cd9dc0..18c81d3f9c 100644
--- a/htl/pt-exit.c
+++ b/htl/pt-exit.c
@@ -109,4 +109,4 @@ __pthread_exit (void *status)
   abort ();
 }
 
-strong_alias (__pthread_exit, pthread_exit);
+weak_alias (__pthread_exit, pthread_exit);
diff --git a/htl/pt-join.c b/htl/pt-join.c
index ecb79e7c49..0473511be9 100644
--- a/htl/pt-join.c
+++ b/htl/pt-join.c
@@ -76,4 +76,4 @@ __pthread_join (pthread_t thread, void **status)
 
   return err;
 }
-strong_alias (__pthread_join, pthread_join);
+weak_alias (__pthread_join, pthread_join);
diff --git a/htl/pt-self.c b/htl/pt-self.c
index fa38df2b6f..e2bc1b97a5 100644
--- a/htl/pt-self.c
+++ b/htl/pt-self.c
@@ -30,4 +30,4 @@ __pthread_self (void)
   return self->thread;
 }
 
-strong_alias (__pthread_self, pthread_self);
+weak_alias (__pthread_self, pthread_self);
diff --git a/htl/pt-setcancelstate.c b/htl/pt-setcancelstate.c
index 7b5899697d..f23e352d31 100644
--- a/htl/pt-setcancelstate.c
+++ b/htl/pt-setcancelstate.c
@@ -43,4 +43,4 @@ __pthread_setcancelstate (int state, int *oldstate)
   return 0;
 }
 
-strong_alias (__pthread_setcancelstate, pthread_setcancelstate);
+weak_alias (__pthread_setcancelstate, pthread_setcancelstate);
diff --git a/htl/pt-setcanceltype.c b/htl/pt-setcanceltype.c
index 2585d8b463..cf053ce677 100644
--- a/htl/pt-setcanceltype.c
+++ b/htl/pt-setcanceltype.c
@@ -43,4 +43,4 @@ __pthread_setcanceltype (int type, int *oldtype)
   return 0;
 }
 
-strong_alias (__pthread_setcanceltype, pthread_setcanceltype);
+weak_alias (__pthread_setcanceltype, pthread_setcanceltype);