From ff151400d89760e9f4b761c14b311e42bc9058bf Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 16 Jan 2004 08:07:01 +0000 Subject: * elf/dl-load.c: Don't declare __libc_stack_end. * sysdeps/generic/libc-start.c: Likewise. * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise. * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h. * sysdeps/generic/backtrace.c: Likewise. linuxthreads/ * attr.c: Include ldsodefs.h. (pthread_getattr_np): Don't declare __libc_stack_end. nptl/ * allocatestack.c: Don't declare __libc_stack_end. * init.c (__pthread_initialize_minimal_internal): Likewise. * pthread_getattr_np.c (pthread_getattr_np): Likewise. 2004-01-16 Richard Henderson * elf/dl-load.c: Don't declare __libc_stack_end. * sysdeps/generic/libc-start.c: Likewise. * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise. * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h. * sysdeps/generic/backtrace.c: Likewise. --- nptl/ChangeLog | 6 ++++++ nptl/allocatestack.c | 2 -- nptl/init.c | 3 --- nptl/pthread_getattr_np.c | 5 +---- 4 files changed, 7 insertions(+), 9 deletions(-) (limited to 'nptl') diff --git a/nptl/ChangeLog b/nptl/ChangeLog index af51441396..3409861329 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,9 @@ +2004-01-16 Richard Henderson + + * allocatestack.c: Don't declare __libc_stack_end. + * init.c (__pthread_initialize_minimal_internal): Likewise. + * pthread_getattr_np.c (pthread_getattr_np): Likewise. + 2004-01-15 Richard Henderson * sysdeps/alpha/tls.h (tcbhead_t): Add private. diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 02de7f0ed7..7aa5af21e4 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -661,8 +661,6 @@ __deallocate_stack (struct pthread *pd) } -extern void *__libc_stack_end; - int internal_function __make_stacks_executable (void **stack_endp) diff --git a/nptl/init.c b/nptl/init.c index 876b9d3bbd..fd4544c99f 100644 --- a/nptl/init.c +++ b/nptl/init.c @@ -217,9 +217,6 @@ __pthread_initialize_minimal_internal (void) THREAD_SETMEM (pd, cpuclock_offset, GL(dl_cpuclock_offset)); #endif - /* Defined in ld.so. */ - extern void *__libc_stack_end; - /* Set initial thread's stack block from 0 up to __libc_stack_end. It will be bigger than it actually is, but for unwind.c/pt-longjmp.c purposes this is good enough. */ diff --git a/nptl/pthread_getattr_np.c b/nptl/pthread_getattr_np.c index 0e1082079a..769f4f5e31 100644 --- a/nptl/pthread_getattr_np.c +++ b/nptl/pthread_getattr_np.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 2002. @@ -72,9 +72,6 @@ pthread_getattr_np (thread_id, attr) thread. Get the info in some magical way. */ assert (abs (thread->pid) == thread->tid); - /* Defined in ld.so. */ - extern void *__libc_stack_end; - /* Stack size limit. */ struct rlimit rl; -- cgit v1.2.3