aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
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 /sysdeps/mach
parent8ba6ad703cb38ec57cdb473650ac289e5f8496d5 (diff)
downloadglibc-fba7fc5a21f5c56e4878228d2311d040e5b84653.zip
glibc-fba7fc5a21f5c56e4878228d2311d040e5b84653.tar.gz
glibc-fba7fc5a21f5c56e4878228d2311d040e5b84653.tar.bz2
htl C11 threads: Avoid pthread_ symbols visibility in static library
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/htl/pt-mutex-destroy.c2
-rw-r--r--sysdeps/mach/hurd/htl/pt-mutex-init.c2
-rw-r--r--sysdeps/mach/hurd/htl/pt-mutex-lock.c2
-rw-r--r--sysdeps/mach/hurd/htl/pt-mutex-timedlock.c2
-rw-r--r--sysdeps/mach/hurd/htl/pt-mutex-trylock.c2
-rw-r--r--sysdeps/mach/hurd/htl/pt-mutex-unlock.c2
-rw-r--r--sysdeps/mach/hurd/i386/Makefile4
7 files changed, 6 insertions, 10 deletions
diff --git a/sysdeps/mach/hurd/htl/pt-mutex-destroy.c b/sysdeps/mach/hurd/htl/pt-mutex-destroy.c
index a5bfadd..b1f68fe 100644
--- a/sysdeps/mach/hurd/htl/pt-mutex-destroy.c
+++ b/sysdeps/mach/hurd/htl/pt-mutex-destroy.c
@@ -34,5 +34,5 @@ __pthread_mutex_destroy (pthread_mutex_t *mtxp)
return 0;
}
-strong_alias (__pthread_mutex_destroy, pthread_mutex_destroy)
+weak_alias (__pthread_mutex_destroy, pthread_mutex_destroy)
hidden_def (__pthread_mutex_destroy)
diff --git a/sysdeps/mach/hurd/htl/pt-mutex-init.c b/sysdeps/mach/hurd/htl/pt-mutex-init.c
index 7a2cc46..af052c4 100644
--- a/sysdeps/mach/hurd/htl/pt-mutex-init.c
+++ b/sysdeps/mach/hurd/htl/pt-mutex-init.c
@@ -55,5 +55,5 @@ __pthread_mutex_init (pthread_mutex_t *mtxp, const pthread_mutexattr_t *attrp)
return 0;
}
-strong_alias (__pthread_mutex_init, pthread_mutex_init)
+weak_alias (__pthread_mutex_init, pthread_mutex_init)
hidden_def (__pthread_mutex_init)
diff --git a/sysdeps/mach/hurd/htl/pt-mutex-lock.c b/sysdeps/mach/hurd/htl/pt-mutex-lock.c
index 6d334a2..2251070 100644
--- a/sysdeps/mach/hurd/htl/pt-mutex-lock.c
+++ b/sysdeps/mach/hurd/htl/pt-mutex-lock.c
@@ -77,4 +77,4 @@ __pthread_mutex_lock (pthread_mutex_t *mtxp)
}
strong_alias (__pthread_mutex_lock, _pthread_mutex_lock)
-strong_alias (__pthread_mutex_lock, pthread_mutex_lock)
+weak_alias (__pthread_mutex_lock, pthread_mutex_lock)
diff --git a/sysdeps/mach/hurd/htl/pt-mutex-timedlock.c b/sysdeps/mach/hurd/htl/pt-mutex-timedlock.c
index 3aa7d79..b11bfc8 100644
--- a/sysdeps/mach/hurd/htl/pt-mutex-timedlock.c
+++ b/sysdeps/mach/hurd/htl/pt-mutex-timedlock.c
@@ -76,5 +76,5 @@ __pthread_mutex_timedlock (pthread_mutex_t *mtxp, const struct timespec *tsp)
return ret;
}
-strong_alias (__pthread_mutex_timedlock, pthread_mutex_timedlock)
+weak_alias (__pthread_mutex_timedlock, pthread_mutex_timedlock)
hidden_def (__pthread_mutex_timedlock)
diff --git a/sysdeps/mach/hurd/htl/pt-mutex-trylock.c b/sysdeps/mach/hurd/htl/pt-mutex-trylock.c
index 5708caf..f883ec3 100644
--- a/sysdeps/mach/hurd/htl/pt-mutex-trylock.c
+++ b/sysdeps/mach/hurd/htl/pt-mutex-trylock.c
@@ -81,4 +81,4 @@ __pthread_mutex_trylock (pthread_mutex_t *mtxp)
}
strong_alias (__pthread_mutex_trylock, _pthread_mutex_trylock)
-strong_alias (__pthread_mutex_trylock, pthread_mutex_trylock)
+weak_alias (__pthread_mutex_trylock, pthread_mutex_trylock)
diff --git a/sysdeps/mach/hurd/htl/pt-mutex-unlock.c b/sysdeps/mach/hurd/htl/pt-mutex-unlock.c
index 4b99a71..aabe9ea 100644
--- a/sysdeps/mach/hurd/htl/pt-mutex-unlock.c
+++ b/sysdeps/mach/hurd/htl/pt-mutex-unlock.c
@@ -88,4 +88,4 @@ __pthread_mutex_unlock (pthread_mutex_t *mtxp)
}
strong_alias (__pthread_mutex_unlock, _pthread_mutex_unlock)
-strong_alias (__pthread_mutex_unlock, pthread_mutex_unlock)
+weak_alias (__pthread_mutex_unlock, pthread_mutex_unlock)
diff --git a/sysdeps/mach/hurd/i386/Makefile b/sysdeps/mach/hurd/i386/Makefile
index 445724f..e6e665b 100644
--- a/sysdeps/mach/hurd/i386/Makefile
+++ b/sysdeps/mach/hurd/i386/Makefile
@@ -87,10 +87,6 @@ test-xfail-XOPEN2K8/sys/socket.h/conform = yes
test-xfail-XOPEN2K8/sys/types.h/conform = yes
test-xfail-XOPEN2K8/stdlib.h/conform = yes
test-xfail-XOPEN2K8/arpa/inet.h/conform = yes
-
-# For bug 23819
-test-xfail-ISO11/threads.h/linknamespace = yes
-test-xfail-ISO11/threads.h/conform = yes
endif
# For bug 23286