aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-03 14:19:21 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-03 14:19:21 +0200
commit77e7ba3201365565a21b42979b8d44be9936f254 (patch)
tree4c1a32b49e5702a5d292d63d257674acf6399f99
parent2ce1f9efd686b5257950977db561ce5a221fee38 (diff)
downloadglibc-77e7ba3201365565a21b42979b8d44be9936f254.zip
glibc-77e7ba3201365565a21b42979b8d44be9936f254.tar.gz
glibc-77e7ba3201365565a21b42979b8d44be9936f254.tar.bz2
hurd: fix overriding rtld's __sbrk with the real implementation
* sysdeps/mach/hurd/dl-sysdep.c (__sbrk): Add weak_function qualifier.
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index dec00f3..fd2f3d5 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -594,6 +594,7 @@ __getcwd (char *buf, size_t size)
/* This is used by dl-tunables.c to strdup strings. We can just make this a
mere allocation. */
void *
+weak_function
__sbrk (intptr_t increment)
{
vm_address_t addr;