git-rtld-sbrk
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
commit b96aca4d05b2da5d5134b1c3176b16f48db9fe4d
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Sep 3 04:25:35 2017 +0200

    hurd: Fix rtld link

            * sysdeps/mach/hurd/dl-sysdep.c (__sbrk): New function.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-rtld-sbrk.diff

sysdeps/mach/hurd/dl-sysdep.c

index d73dd17f073bb28f81cd512a4b9ea4664f9dd137..57a1888e7db9bede34fdcf085e958a6a0b6606f9 100644 (file)
@@ -590,6 +590,16 @@ __getcwd (char *buf, size_t size)
   return NULL;
 }
 
+/* This is used by dl-tunables.c to strdup strings.  We can just make this a
+   mere allocation.  */
+void *
+__sbrk (intptr_t increment)
+{
+  vm_address_t addr;
+  __vm_allocate (__mach_task_self (), &addr, increment, 1);
+  return (void *) addr;
+}
+
 void weak_function attribute_hidden
 _exit (int status)
 {