Small optimization of STT_GNU_IFUNC handling.
[glibc.git] / nptl / vars.c
blob1e1a3cf5be4711ea62dfc253c0df54a3a650491a
1 /* Copyright (C) 2004 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #include <pthreadP.h>
20 #include <stdlib.h>
21 #include <tls.h>
22 #include <unistd.h>
24 /* Default stack size. */
25 size_t __default_stacksize attribute_hidden
26 #ifdef SHARED
28 #else
29 = PTHREAD_STACK_MIN;
30 #endif
32 /* Flag whether the machine is SMP or not. */
33 int __is_smp attribute_hidden;
35 #ifndef TLS_MULTIPLE_THREADS_IN_TCB
36 /* Variable set to a nonzero value if more than one thread runs or ran. */
37 int __pthread_multiple_threads attribute_hidden;
38 #endif
40 /* Table of the key information. */
41 struct pthread_key_struct __pthread_keys[PTHREAD_KEYS_MAX]
42 __attribute__ ((nocommon));
43 hidden_data_def (__pthread_keys)