[glibc] 01/01: patches/hurd-i386/git-rtld-sbrk.diff: New patch
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch glibc-2.26
in repository glibc.
commit 738517a1c4ff5729d44e6c00607113feecfb3523
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sun Sep 3 02:29:31 2017 +0000
patches/hurd-i386/git-rtld-sbrk.diff: New patch
---
debian/changelog | 1 +
debian/patches/hurd-i386/git-rtld-sbrk.diff | 29 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 31 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 26e3826..6254f26 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -52,6 +52,7 @@ glibc (2.26-0experimental0~ppa4) UNRELEASED; urgency=medium
- patches/hurd-i386/git-bits_socket.h: New patch.
- patches/hurd-i386/git-preadwritev2.diff: New patch.
- patches/hurd-i386/git-rtld-access.diff: New patch.
+ - patches/hurd-i386/git-rtld-sbrk.diff: New patch.
-- Adam Conrad <adconrad@0c3.net> Sat, 02 Sep 2017 12:15:10 -0600
diff --git a/debian/patches/hurd-i386/git-rtld-sbrk.diff b/debian/patches/hurd-i386/git-rtld-sbrk.diff
new file mode 100644
index 0000000..6b61567
--- /dev/null
+++ b/debian/patches/hurd-i386/git-rtld-sbrk.diff
@@ -0,0 +1,29 @@
+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.
+
+diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
+index 2bfa64f02a..dec00f35f0 100644
+--- a/sysdeps/mach/hurd/dl-sysdep.c
++++ b/sysdeps/mach/hurd/dl-sysdep.c
+@@ -591,6 +591,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)
+ {
diff --git a/debian/patches/series b/debian/patches/series
index c94c37d..8e9f113 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -139,6 +139,7 @@ hurd-i386/tg2.26-sigsetops.h
hurd-i386/git-bits_socket.h
hurd-i386/git-preadwritev2.diff
hurd-i386/git-rtld-access.diff
+hurd-i386/git-rtld-sbrk.diff
i386/local-biarch.diff
i386/unsubmitted-quiet-ldconfig.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/glibc.git
Reply to: