[PATCH 19/19] htl: move __pthread_startup into libc.

gfleury gfleury@disroot.org
Fri Aug 15 18:15:00 GMT 2025


---
 htl/Makefile             | 2 +-
 htl/Versions             | 1 +
 htl/pt-internal.h        | 1 +
 sysdeps/htl/pt-startup.c | 1 +
 4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/htl/Makefile b/htl/Makefile
index 329e4669..2812a870 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 \
   pt-sigstate-destroy \
   pt-stack-alloc \
+  pt-startup \
   pt-testcancel \
   pt-timedblock \
   pt-timedblock-intr \
diff --git a/htl/Versions b/htl/Versions
index 31456186..5570a2b6 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 f816aca2..1bab90cf 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 6e41d458..ce21a518 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)
-- 
2.47.2



More information about the Libc-alpha mailing list