aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-04 20:55:08 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-04 20:55:08 +0000
commit518b53086ca3c10b3587e1162602c8f2aacccbde (patch)
tree3273fb920f07195dd01a64ea92627530da2ee806 /nptl/pthread_create.c
parente2b80a5802e58d8922faf4b56d275897cf0f6f18 (diff)
downloadglibc-518b53086ca3c10b3587e1162602c8f2aacccbde.tar
glibc-518b53086ca3c10b3587e1162602c8f2aacccbde.tar.gz
glibc-518b53086ca3c10b3587e1162602c8f2aacccbde.tar.bz2
glibc-518b53086ca3c10b3587e1162602c8f2aacccbde.zip
Update.
* pthread_create.c: Define __pthread_keys using nocommon attribute, not by placing it explicitly in bss. Remove DEFINE_DEALLOC definition. Not needed anymore. * allocatestack.c: Define ARCH_MAP_FLAGS if not already defined. Use it in mmap call to allocate stacks. * sysdeps/pthread/createthread.c (create_thread): Fix comment.
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index 1d342786f4..2ec70ea32e 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -50,7 +50,6 @@ unsigned int __nptl_nthreads = 1;
/* Code to allocate and deallocate a stack. */
-#define DEFINE_DEALLOC
#include "allocatestack.c"
/* Code to create the thread. */
@@ -59,7 +58,7 @@ unsigned int __nptl_nthreads = 1;
/* Table of the key information. */
struct pthread_key_struct __pthread_keys[PTHREAD_KEYS_MAX]
- __attribute__ ((section (".bss")));
+ __attribute__ ((nocommon));
hidden_def (__pthread_keys)
/* This is for libthread_db only. */