aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-21 22:35:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-21 22:35:00 +0200
commitb8cdc3bba71140d9c122ebde01c5094db1889485 (patch)
tree574d937f02b43628ef37b9edc9b8acbc5e94be03 /nptl/pthread_create.c
parentd03511f48f49fcb9bec4305586c26ab5d0063022 (diff)
downloadglibc-b8cdc3bba71140d9c122ebde01c5094db1889485.zip
glibc-b8cdc3bba71140d9c122ebde01c5094db1889485.tar.gz
glibc-b8cdc3bba71140d9c122ebde01c5094db1889485.tar.bz2
nptl: Move semi-public __pthread_get_minstack symbol into libc
No abilist updates here because it is a GLIBC_PRIVATE symbol. It's also necessary to move nptl_version into pthread_create, so that it still ends up in static binaries. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index 772b5ef..438b8a7 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -36,6 +36,7 @@
#include <tls-setup.h>
#include "libioP.h"
#include <sys/single_threaded.h>
+#include <version.h>
#include <shlib-compat.h>
@@ -56,6 +57,9 @@ static struct rtld_global *__nptl_rtld_global __attribute_used__
= &_rtld_global;
#endif
+/* Version of the library, used in libthread_db to detect mismatches. */
+static const char nptl_version[] __attribute_used__ = VERSION;
+
/* This performs the initialization necessary when going from
single-threaded to multi-threaded mode for the first time. */
static void