This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[hurd,commited] hurd: fix overriding rtld's __sbrk with the real implementation
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: libc-alpha at sourceware dot org
- Cc: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Date: Sun, 3 Sep 2017 14:21:09 +0200
- Subject: [hurd,commited] hurd: fix overriding rtld's __sbrk with the real implementation
- Authentication-results: sourceware.org; auth=none
* sysdeps/mach/hurd/dl-sysdep.c (__sbrk): Add weak_function
qualifier.
---
sysdeps/mach/hurd/dl-sysdep.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index dec00f35f0..fd2f3d52cb 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;
--
2.14.1