aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/thrd_exit.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-03 08:12:12 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-03 08:17:15 +0200
commit96e61709b49c3ebe4fa49c235ddafaad1f1dfc84 (patch)
treee4b70b05f8bcf16d54d0ad9761149b15d3f4913c /sysdeps/pthread/thrd_exit.c
parentae4a5ca07496e8ae8a74924095f0161d4c759328 (diff)
downloadglibc-96e61709b49c3ebe4fa49c235ddafaad1f1dfc84.zip
glibc-96e61709b49c3ebe4fa49c235ddafaad1f1dfc84.tar.gz
glibc-96e61709b49c3ebe4fa49c235ddafaad1f1dfc84.tar.bz2
nptl: Move thrd_exit into libc
The symbol was moved using scripts/move-symbol-to-libc.py. The __pthread_exit@@GLIBC_PRIVATE symbol is no longer needed after this change, so remove it. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/pthread/thrd_exit.c')
-rw-r--r--sysdeps/pthread/thrd_exit.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/pthread/thrd_exit.c b/sysdeps/pthread/thrd_exit.c
index 7348e83..1554af4 100644
--- a/sysdeps/pthread/thrd_exit.c
+++ b/sysdeps/pthread/thrd_exit.c
@@ -16,10 +16,19 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
+#include <shlib-compat.h>
#include "thrd_priv.h"
_Noreturn void
-thrd_exit (int res)
+__thrd_exit (int res)
{
__pthread_exit ((void*)(uintptr_t) res);
}
+#if PTHREAD_IN_LIBC
+versioned_symbol (libc, __thrd_exit, thrd_exit, GLIBC_2_34);
+# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34)
+compat_symbol (libpthread, __thrd_exit, thrd_exit, GLIBC_2_28);
+# endif
+#else /* !PTHREAD_IN_LIBC */
+strong_alias (__thrd_exit, thrd_exit)
+#endif