about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/i386
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-27 20:43:56 +0000
committerRoland McGrath <roland@gnu.org>1996-05-27 20:43:56 +0000
commit2a4dcf76ca230994166ea1c573d05ee0f85da1b5 (patch)
tree7ff02d331db5251f31e8dd9d4f48418b93908a90 /sysdeps/unix/sysv/linux/i386
parent807912915b065225c55bf0ac0277cb71fc394e6d (diff)
downloadglibc-2a4dcf76ca230994166ea1c573d05ee0f85da1b5.tar.gz
glibc-2a4dcf76ca230994166ea1c573d05ee0f85da1b5.tar.xz
glibc-2a4dcf76ca230994166ea1c573d05ee0f85da1b5.zip
* sysdeps/unix/sysv/linux/i386/brk.c (__curbrk): Initialize it so it
	can be aliased.
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386')
-rw-r--r--sysdeps/unix/sysv/linux/i386/brk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/brk.c b/sysdeps/unix/sysv/linux/i386/brk.c
index f681734e48..f9e92dde5e 100644
--- a/sysdeps/unix/sysv/linux/i386/brk.c
+++ b/sysdeps/unix/sysv/linux/i386/brk.c
@@ -21,7 +21,8 @@ Cambridge, MA 02139, USA.  */
 #include <unistd.h>
 #include <sysdep.h>
 
-void *__curbrk;
+/* This must be initialized data because commons can't have aliases.  */
+void *__curbrk = 0;
 
 /* Old braindamage in GCC's crtstuff.c requires this symbol in an attempt
    to work around different old braindamage in the old Linux ELF dynamic