From c62cef023cdcd8349369ef4e0d08290e495659be Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 21 Apr 2021 19:49:50 +0200 Subject: nptl: Move pthread_exit into libc The pthread_exit symbol was moved using scripts/move-symbol-to-libc.py. No new symbol version is needed because there was a forwarder. The new tests nptl/tst-pthread_exit-nothreads and nptl/tst-pthread_exit-nothreads-static exercise the scenario that pthread_exit is called without libpthread having been linked in. This is not possible for the generic code, so these tests do not live in sysdeps/pthread for now. Reviewed-by: Adhemerval Zanella --- nptl/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'nptl/Makefile') diff --git a/nptl/Makefile b/nptl/Makefile index 60fa98140d..f96d905b0b 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -74,6 +74,7 @@ routines = \ pthread_condattr_destroy \ pthread_condattr_init \ pthread_equal \ + pthread_exit \ pthread_getaffinity \ pthread_getattr_np \ pthread_getschedparam \ @@ -134,7 +135,6 @@ libpthread-routines = \ pthread_condattr_setpshared \ pthread_create \ pthread_detach \ - pthread_exit \ pthread_getattr_default_np \ pthread_getconcurrency \ pthread_getcpuclockid \ @@ -313,7 +313,13 @@ tests = tst-attr2 tst-attr3 tst-default-attr \ tst-pthread-defaultattr-free \ tst-pthread-attr-sigmask \ tst-pthread-timedlock-lockloop \ - tst-pthread-gdb-attach tst-pthread-gdb-attach-static + tst-pthread-gdb-attach tst-pthread-gdb-attach-static \ + tst-pthread_exit-nothreads \ + tst-pthread_exit-nothreads-static \ + +tests-nolibpthread = \ + tst-pthread_exit-nothreads \ + tst-pthread_exit-nothreads-static \ tests-container = tst-pthread-getattr @@ -452,7 +458,8 @@ tests-static += tst-stackguard1-static \ tst-cancel24-static \ tst-mutex8-static tst-mutexpi8-static tst-sem11-static \ tst-sem12-static tst-cond11-static \ - tst-pthread-gdb-attach-static + tst-pthread-gdb-attach-static \ + tst-pthread_exit-nothreads-static tests += tst-cancel24-static -- cgit 1.4.1