[PATCH] [BZ #21528] rtld: Add _dl_strtoul
H.J. Lu
hjl.tools@gmail.com
Thu Jun 8 17:46:00 GMT 2017
On Mon, Jun 5, 2017 at 12:59 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> There are 2 minimal strtoul implementations in ld.so:
>
> 1. __strtoul_internal in elf/dl-minimal.c.
> 2. tunables_strtoul in elf/dl-tunables.c.
>
> This patch adds _dl_strtoul to replace them. Tested builds with and
> without --enable-tunables.
>
> OK for master?
>
> Thanks.
>
> H.J.
> ---
> [BZ #21528]
> * elf/dl-minimal.c (__strtoul_internal): Removed.
> (strtoul): Likewise.
> * elf/dl-misc.c (_dl_strtoul): New function.
> * elf/dl-tunables.c (tunables_strtoul): Removed.
> (tunable_initialize): Replace tunables_strtoul with _dl_strtoul.
> * elf/rtld.c (process_envvars): Likewise.
> * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init):
> Likewise.
> * sysdeps/generic/ldsodefs.h (_dl_strtoul): New prototype.
>
Here is the updated patch. Any comments, objections?
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ld.so-Consolidate-2-strtouls-into-_dl_strtoul.patch
Type: text/x-patch
Size: 9062 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170608/b38d39bb/attachment.bin>
More information about the Libc-alpha
mailing list