aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-28 14:33:53 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-28 15:05:42 +0200
commitfef400a2f976d1fd6a4639e6980f6c50ee13fbf5 (patch)
treecb92de8390f3c38c40f54e6dc496b39ae449563a /nptl/pthread_create.c
parentb369cc4e9c2436b9b4f56128059313b69b0c300d (diff)
downloadglibc-fef400a2f976d1fd6a4639e6980f6c50ee13fbf5.zip
glibc-fef400a2f976d1fd6a4639e6980f6c50ee13fbf5.tar.gz
glibc-fef400a2f976d1fd6a4639e6980f6c50ee13fbf5.tar.bz2
nptl: Export libthread_db-used symbols under GLIBC_PRIVATE
This allows distributions to strip debugging information from libc.so.6 without impacting the debugging experience. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index 3f017f1..d1b6817 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -43,21 +43,24 @@
/* Globally enabled events. */
-static td_thr_events_t __nptl_threads_events __attribute_used__;
+td_thr_events_t __nptl_threads_events __attribute__ ((nocommon));
+libc_hidden_proto (__nptl_threads_events)
+libc_hidden_data_def (__nptl_threads_events)
/* Pointer to descriptor with the last event. */
-static struct pthread *__nptl_last_event __attribute_used__;
+struct pthread *__nptl_last_event __attribute__ ((nocommon));
+libc_hidden_proto (__nptl_last_event)
+libc_hidden_data_def (__nptl_last_event)
#ifdef SHARED
/* This variable is used to access _rtld_global from libthread_db. If
GDB loads libpthread before ld.so, it is not possible to resolve
_rtld_global directly during libpthread initialization. */
-static struct rtld_global *__nptl_rtld_global __attribute_used__
- = &_rtld_global;
+struct rtld_global *__nptl_rtld_global = &_rtld_global;
#endif
/* Version of the library, used in libthread_db to detect mismatches. */
-static const char nptl_version[] __attribute_used__ = VERSION;
+const char __nptl_version[] = VERSION;
/* This performs the initialization necessary when going from
single-threaded to multi-threaded mode for the first time. */