_dl_exception_create_format: Support %x/%lx/%zx
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 29 Nov 2018 22:15:01 +0000 (14:15 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 29 Nov 2018 22:47:27 +0000 (14:47 -0800)
commita5275ba5378c9256d18e582572b4315e8edfcbfb
treee8466df5b9e62c25bd07df9d749e565022b59729
parent3a67e81d7527363a96af095a5af03b6201b82e9d
_dl_exception_create_format: Support %x/%lx/%zx

Add support for %x, %lx and %zx to _dl_exception_create_format and pad
to the full width with 0.

* elf/Makefile (tests-internal): Add tst-create_format1.
* elf/dl-exception.c (_dl_exception_create_format): Support
%x, %lx and %zx.
* elf/tst-create_format1.c: New file.
ChangeLog
elf/Makefile
elf/dl-exception.c
elf/tst-create_format1.c [new file with mode: 0644]