diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-10 10:31:41 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-10 10:31:41 +0200 |
commit | 321789f61aa93c14390535aa3cf01846633cd022 (patch) | |
tree | fe2687c3058b23379918e700a7bfec82da2f4cd0 /nptl/libc_multiple_threads.c | |
parent | d6163dfd3831cf48b69f430f37b4c099059a9db5 (diff) | |
download | glibc-321789f61aa93c14390535aa3cf01846633cd022.tar glibc-321789f61aa93c14390535aa3cf01846633cd022.tar.gz glibc-321789f61aa93c14390535aa3cf01846633cd022.tar.bz2 glibc-321789f61aa93c14390535aa3cf01846633cd022.zip |
nptl: Export __libc_multiple_threads from libc as an internal symbol
This allows the elimination of the __libc_multiple_threads_ptr
variable in libpthread and its initialization procedure.
Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/libc_multiple_threads.c')
-rw-r--r-- | nptl/libc_multiple_threads.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/libc_multiple_threads.c b/nptl/libc_multiple_threads.c index 60328023cd..a0e7932c26 100644 --- a/nptl/libc_multiple_threads.c +++ b/nptl/libc_multiple_threads.c @@ -23,6 +23,7 @@ /* Variable set to a nonzero value either if more than one thread runs or ran, or if a single-threaded process is trying to cancel itself. See nptl/descr.h for more context on the single-threaded process case. */ -int __libc_multiple_threads attribute_hidden; +int __libc_multiple_threads __attribute__ ((nocommon)); +libc_hidden_data_def (__libc_multiple_threads) # endif #endif |