hurd: Fix rtld's strtoul_internal use through hurdlookup
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 3 Sep 2017 12:33:35 +0000 (14:33 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 3 Sep 2017 12:33:35 +0000 (14:33 +0200)
* sysdeps/mach/hurd/dl-sysdep.c (__strtoul_internal): New
function.

ChangeLog
sysdeps/mach/hurd/dl-sysdep.c

index 25ea83f6011c897335a79a266557bb7eb38cd4e0..4802f7c4286dc7dbfa9babc2240e1ecf664b612a 100644 (file)
--- 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
index fd2f3d52cb1958883327c76c38741744a2e02b2a..517e4d62cc676d7ca87400683f3c669783d4d935 100644 (file)
@@ -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)
 {