]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* elf/dl-load.c: Don't declare __libc_stack_end. * sysdeps/generic...
authorRichard Henderson <rth@redhat.com>
Fri, 16 Jan 2004 08:07:01 +0000 (08:07 +0000)
committerRichard Henderson <rth@redhat.com>
Fri, 16 Jan 2004 08:07:01 +0000 (08:07 +0000)
2004-01-16  Richard Henderson  <rth@redhat.com>

        * 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.

12 files changed:
ChangeLog
elf/dl-load.c
linuxthreads/ChangeLog
linuxthreads/attr.c
nptl/ChangeLog
nptl/allocatestack.c
nptl/init.c
nptl/pthread_getattr_np.c
sysdeps/generic/backtrace.c
sysdeps/generic/libc-start.c
sysdeps/generic/segfault.c
sysdeps/unix/sysv/linux/dl-execstack.c

index 09a828d412a3cd49fc0b9bb36b93bea4df91cfb4..3797214864de89bdd91fecca99507b20fe6e18ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-01-16  Richard Henderson  <rth@redhat.com>
+
+        * 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.
+
 2004-01-15  Ulrich Drepper  <drepper@redhat.com>
 
        * Versions.def: Add GLIBC_2.3.4.
index 527a5f18c1742a6c33788f6d8a1fb0aeaa603a6b..f9e2bcbbe3df5bf427d30cecd0e793fb6aa960b6 100644 (file)
@@ -1949,7 +1949,6 @@ cannot create shared object descriptor"));
                                  N_("cannot open shared object file"));
     }
 
-  extern void *__libc_stack_end;
   void *stack_end = __libc_stack_end;
   return _dl_map_object_from_fd (name, fd, &fb, realname, loader, type, mode,
                                 &stack_end);
index 9129604ccf4bd229bf5932261de4c3af72f5f552..70558eb72ebdcc123f128fa7d52525bdeb63da9a 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-16  Richard Henderson  <rth@redhat.com>
+
+        * attr.c: Include ldsodefs.h.
+        (pthread_getattr_np): Don't declare __libc_stack_end.
+
 2004-01-09  Steven Munroe  <sjmunroe@us.ibm.com>
 
        * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h
index a88fdb96c59579e6eb14c09208d11b5d3481df01..2adc7ccd7a87d59fec125c023bdc6b1b1f68af3d 100644 (file)
@@ -26,6 +26,8 @@
 #include "pthread.h"
 #include "internals.h"
 #include <shlib-compat.h>
+#include <ldsodefs.h>
+
 
 int __pthread_attr_init_2_1(pthread_attr_t *attr)
 {
@@ -415,9 +417,6 @@ int pthread_getattr_np (pthread_t thread, pthread_attr_t *attr)
   if (descr == &__pthread_initial_thread)
 #endif
     {
-      /* Defined in ld.so.  */
-      extern void *__libc_stack_end;
-
       /* Stack size limit.  */
       struct rlimit rl;
 
index af5144139690d79d205966e6a607fe7f6245813d..3409861329bf2a05a7aa99499ad3eda597be9856 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-16  Richard Henderson  <rth@redhat.com>
+
+        * 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  <rth@redhat.com>
 
        * sysdeps/alpha/tls.h (tcbhead_t): Add private.
index 02de7f0ed72a8f858d329944a8564f9e0d0cc537..7aa5af21e4154596a6c1403753942f9fb44dba5f 100644 (file)
@@ -661,8 +661,6 @@ __deallocate_stack (struct pthread *pd)
 }
 
 
-extern void *__libc_stack_end;
-
 int
 internal_function
 __make_stacks_executable (void **stack_endp)
index 876b9d3bbd1a61f99c986de6c03f0223bdc65fe9..fd4544c99f00a74a812f1e29cffa01d5438ad52c 100644 (file)
@@ -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.  */
index 0e1082079a3e484d08e457eb359cb6a5add41b7e..769f4f5e31f49e6524034ad36f94561ab26d548e 100644 (file)
@@ -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 <drepper@redhat.com>, 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;
 
index f27f890bc44a82d3651aaa7e89970d3a12adc8b1..6a3336c6d222745dd4e31cc3ef37da60629cc81e 100644 (file)
@@ -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 <drepper@cygnus.com>, 1998.
 
 #include <frame.h>
 #include <sigcontextinfo.h>
 #include <bp-checks.h>
-
-/* This is a global variable set at program start time.  It marks the
-   highest used stack address.  */
-extern void *__libc_stack_end;
-
+#include <ldsodefs.h>
 
 /* This implementation assumes a stack layout that matches the defaults
    used by gcc's `__builtin_frame_address' and `__builtin_return_address'
index 716bbc7018286bc586ba64c430105389427e6c44..582ae0b6a2688c3d08de24601713fa17021d342b 100644 (file)
@@ -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 <tls.h>
 #ifndef SHARED
index 168731479a4f3aaf969ab533fc4297f9c69414de..47f24471692ea35c99446451a89f47ae1d4005aa 100644 (file)
@@ -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 <drepper@cygnus.com>, 1998.
 
@@ -28,6 +29,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <stdio-common/_itoa.h>
+#include <ldsodefs.h>
 
 #include <bp-checks.h>
 
 /* Get code to possibly dump the content of all registers.  */
 #include <register-dump.h>
 
-/* 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):
index e96197a22ea30ef9d60956eaf62faba96d0ebc47..48512ede7d96e66fcffdcd87ad82b5faba103372 100644 (file)
@@ -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)