From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: libc-alpha@sourceware.org
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: [hurd,commited] hurd: Fix rtld's strtoul_internal use through hurdlookup
Date: Sun, 03 Sep 2017 12:35:00 -0000 [thread overview]
Message-ID: <20170903123530.21067-1-samuel.thibault@ens-lyon.org> (raw)
* sysdeps/mach/hurd/dl-sysdep.c (__strtoul_internal): New
function.
---
ChangeLog | 4 ++--
sysdeps/mach/hurd/dl-sysdep.c | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 25ea83f601..4802f7c428 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,8 +18,8 @@
Fix <unistd.h> inclusion.
* sysdeps/posix/pwritev2.c: Include <errno.h>.
* sysdeps/posix/pwritev64v2.c: Include <errno.h>.
- * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk): New
- functions.
+ * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
+ __strtoul_internal): New functions.
* sysdeps/posix/pause.c: Include <sigsetops.h>.
* sysdeps/posix/system.c: Include <sigsetops.h>.
* sysdeps/mach/hurd/i386/Makefile
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index fd2f3d52cb..517e4d62cc 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -602,6 +602,15 @@ __sbrk (intptr_t increment)
return (void *) addr;
}
+unsigned long int
+weak_function
+__strtoul_internal (const char *nptr, char **endptr, int base, int group)
+{
+ assert (base == 0 || base == 10);
+ assert (group == 0);
+ return _dl_strtoul (nptr, endptr);
+}
+
void weak_function attribute_hidden
_exit (int status)
{
--
2.14.1
reply other threads:[~2017-09-03 12:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170903123530.21067-1-samuel.thibault@ens-lyon.org \
--to=samuel.thibault@ens-lyon.org \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).