From patchwork Sun Sep 3 02:34:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 22586 Received: (qmail 26739 invoked by alias); 3 Sep 2017 02:34:09 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 26726 invoked by uid 89); 3 Sep 2017 02:34:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Fix rtld link Date: Sun, 3 Sep 2017 04:34:00 +0200 Message-Id: <20170903023400.24895-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/hurd/dl-sysdep.c (__sbrk): New function. --- ChangeLog | 3 ++- sysdeps/mach/hurd/dl-sysdep.c | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2e6083b372..11edadd5fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,7 +18,8 @@ Fix inclusion. * sysdeps/posix/pwritev2.c: Include . * sysdeps/posix/pwritev64v2.c: Include . - * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): New function. + * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk): New + functions. 2017-09-01 Joseph Myers 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) {