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. --- sysdeps/generic/backtrace.c | 8 ++------ sysdeps/generic/libc-start.c | 1 - sysdeps/generic/segfault.c | 9 +++------ sysdeps/unix/sysv/linux/dl-execstack.c | 2 -- 4 files changed, 5 insertions(+), 15 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/generic/backtrace.c b/sysdeps/generic/backtrace.c index f27f890bc4..6a3336c6d2 100644 --- a/sysdeps/generic/backtrace.c +++ b/sysdeps/generic/backtrace.c @@ -1,5 +1,5 @@ /* Return backtrace of current program state. Generic version. - Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc. + Copyright (C) 1998, 2000, 2002, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@ -23,11 +23,7 @@ #include #include #include - -/* This is a global variable set at program start time. It marks the - highest used stack address. */ -extern void *__libc_stack_end; - +#include /* This implementation assumes a stack layout that matches the defaults used by gcc's `__builtin_frame_address' and `__builtin_return_address' diff --git a/sysdeps/generic/libc-start.c b/sysdeps/generic/libc-start.c index 716bbc7018..582ae0b6a2 100644 --- a/sysdeps/generic/libc-start.c +++ b/sysdeps/generic/libc-start.c @@ -26,7 +26,6 @@ extern void __libc_init_first (int argc, char **argv, char **envp); extern int __libc_multiple_libcs; -extern void *__libc_stack_end; #include #ifndef SHARED diff --git a/sysdeps/generic/segfault.c b/sysdeps/generic/segfault.c index 168731479a..47f2447169 100644 --- a/sysdeps/generic/segfault.c +++ b/sysdeps/generic/segfault.c @@ -1,5 +1,6 @@ /* Catch segmentation faults and print backtrace. - Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 + Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@ -28,6 +29,7 @@ #include #include #include +#include #include @@ -41,11 +43,6 @@ /* Get code to possibly dump the content of all registers. */ #include -/* This is a global variable set at program start time. It marks the - highest used stack address. */ -extern void *__libc_stack_end; - - /* This implementation assumes a stack layout that matches the defaults used by gcc's `__builtin_frame_address' and `__builtin_return_address' (FP is the frame pointer register): diff --git a/sysdeps/unix/sysv/linux/dl-execstack.c b/sysdeps/unix/sysv/linux/dl-execstack.c index e96197a22e..48512ede7d 100644 --- a/sysdeps/unix/sysv/linux/dl-execstack.c +++ b/sysdeps/unix/sysv/linux/dl-execstack.c @@ -26,8 +26,6 @@ #include "kernel-features.h" -extern void *__libc_stack_end attribute_hidden; - int internal_function _dl_make_stack_executable (void **stack_endp) -- cgit v1.2.3