From 6736e93bab3afb0745f15aa81c0093a698cca856 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 6 Apr 2002 01:45:15 +0000 Subject: Update. 2002-03-23 Jakub Jelinek * sysdeps/generic/brk.c (__curbrk): Declare. * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk. * sysdeps/generic/dl-sbrk.c: Likewise. * sysdeps/unix/arm/dl-brk.S: New file. * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file. * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file. * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file. * sysdeps/unix/bsd/vax/dl-brk.S: New file. * sysdeps/unix/i386/dl-brk.S: New file. * sysdeps/unix/mips/dl-brk.S: New file. * sysdeps/unix/sparc/dl-brk.S: New file. * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file. * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file. * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file. * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file. * sysdeps/unix/sysv/linux/i386/dl-brk.c: Remove. * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Remove. 2002-04-03 Andreas Schwab * Makefile (headers): Add gnu/lib-names.h here instead of install-others. ($(inst_includedir)/gnu/lib-names.h): Remove explicit installation rule. (install-headers): Add dependency on install-headers-nosubdir. * stdio-common/Makefile (headers): Add bits/stdio_lim.h here instead of install-others. ($(inst_includedir)/bits/stdio_lim.h): Remove explicit installation rule. 2002-04-05 Ulrich Drepper * manual/users.tex (Enable/Disable Setuid): Fix typo in example. Reported by Sam Roberts . 2002-04-03 Jakub Jelinek * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if l_addr == 0 and ELF_MACHINE_REL_RELATIVE. * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define. * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define. 2002-04-03 David Mosberger * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info. (RTLD_START): Ditto. (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW dependency violation. --- sysdeps/generic/brk.c | 5 ++++- sysdeps/generic/dl-brk.c | 5 ++++- sysdeps/generic/dl-sbrk.c | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/brk.c b/sysdeps/generic/brk.c index 8b8b734e33..b951819f21 100644 --- a/sysdeps/generic/brk.c +++ b/sysdeps/generic/brk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,6 +19,9 @@ #include #include +/* sbrk.c expects this. */ +void *__curbrk; + /* Set the end of the process's data space to ADDR. Return 0 if successful, -1 if not. */ int diff --git a/sysdeps/generic/dl-brk.c b/sysdeps/generic/dl-brk.c index 4a0cf2da11..c37cdfec33 100644 --- a/sysdeps/generic/dl-brk.c +++ b/sysdeps/generic/dl-brk.c @@ -1,2 +1,5 @@ -/* Just use the normal code. */ +/* We can use the normal code but we also know the __curbrk is not exported + from ld.so. */ +extern void *__curbrk attribute_hidden; + #include diff --git a/sysdeps/generic/dl-sbrk.c b/sysdeps/generic/dl-sbrk.c index 3874975890..4713a92694 100644 --- a/sysdeps/generic/dl-sbrk.c +++ b/sysdeps/generic/dl-sbrk.c @@ -1,2 +1,5 @@ -/* Just use the normal code. */ +/* We can use the normal code but we also know the __curbrk is not exported + from ld.so. */ +extern void *__curbrk attribute_hidden; + #include -- cgit v1.2.3-70-g09d2