aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-11-25 17:48:51 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-11-25 17:48:51 +0100
commit4d952856e32d0b35e5e25c1fc4d73c38b832bd6c (patch)
tree103a568194b593c77fd8b94c42090396b47c2c97
parentc679db43525555f6a1d3831bfac8ca9cc69977cf (diff)
downloadglibc-4d952856e32d0b35e5e25c1fc4d73c38b832bd6c.zip
glibc-4d952856e32d0b35e5e25c1fc4d73c38b832bd6c.tar.gz
glibc-4d952856e32d0b35e5e25c1fc4d73c38b832bd6c.tar.bz2
hurd: Initialize __libc_stack_end for hidden support
* sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get into initialized data instead of common.
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f00417f..ceb14b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,8 +6,8 @@
* sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
* sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
libc_hidden_def.
- * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Define
- rtld_hidden_data_def.
+ * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
+ into initialized data instead of common. Define rtld_hidden_data_def.
* sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
* sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
libc_hidden_def.
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 222eece..196956a 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -55,7 +55,7 @@ rtld_hidden_data_def (__libc_enable_secure)
int __libc_multiple_libcs = 0; /* Defining this here avoids the inclusion
of init-first. */
/* This variable contains the lowest stack address ever used. */
-void *__libc_stack_end;
+void *__libc_stack_end = NULL;
rtld_hidden_data_def(__libc_stack_end)
#if HP_TIMING_AVAIL