aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2025-08-15 20:15:00 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-08-16 01:44:51 +0200
commit35296a6e73d3244b415823e2811fa5f930457944 (patch)
treea5a44680f86a000fa77bb3be31ae36ce1316ba4d
parent80412aee3efd94fa950b6609f84d3912ad7b5aa4 (diff)
downloadglibc-35296a6e73d3244b415823e2811fa5f930457944.zip
glibc-35296a6e73d3244b415823e2811fa5f930457944.tar.gz
glibc-35296a6e73d3244b415823e2811fa5f930457944.tar.bz2
htl: move __pthread_startup into libc.
Message-ID: <20250815181500.107433-20-gfleury@disroot.org>
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions1
-rw-r--r--htl/pt-internal.h1
-rw-r--r--sysdeps/htl/pt-startup.c1
4 files changed, 4 insertions, 1 deletions
diff --git a/htl/Makefile b/htl/Makefile
index 995bcef..ec48f8b 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -30,7 +30,6 @@ libpthread-routines := \
pt-spin-inlines \
pt-hurd-cond-wait \
pt-hurd-cond-timedwait \
- pt-startup \
pt-sysdep \
pt-spin \
pt-getname-np \
@@ -203,6 +202,7 @@ routines := \
pt-sigstate-destroy \
pt-sigstate-init \
pt-stack-alloc \
+ pt-startup \
pt-testcancel \
pt-thread-alloc \
pt-thread-start \
diff --git a/htl/Versions b/htl/Versions
index 3145618..5570a2b 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -276,6 +276,7 @@ libc {
__pthread_sigstate_destroy;
__pthread_sigmask;
__pthread_stack_alloc;
+ __pthread_startup;
__pthread_testcancel;
__pthread_timedblock;
__pthread_timedblock_intr;
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index f816aca..1bab90c 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -270,6 +270,7 @@ libc_hidden_proto (__pthread_thread_terminate)
/* Called by a thread just before it calls the provided start
routine. */
extern void __pthread_startup (void);
+libc_hidden_proto (__pthread_startup)
/* Block THREAD. */
extern void __pthread_block (struct __pthread *thread);
diff --git a/sysdeps/htl/pt-startup.c b/sysdeps/htl/pt-startup.c
index 6e41d45..ce21a51 100644
--- a/sysdeps/htl/pt-startup.c
+++ b/sysdeps/htl/pt-startup.c
@@ -22,3 +22,4 @@ void
__pthread_startup (void)
{
}
+libc_hidden_def (__pthread_startup)