[PATCH] Fix output of LD_SHOW_AUXV=1.
Stefan Liebler
stli@linux.ibm.com
Fri Mar 8 12:52:00 GMT 2019
Hi,
starting with commit 1616d034b61622836d3a36af53dcfca7624c844e
the output was corrupted on some platforms as _dl_procinfo
was called for every auxv entry and on some architectures like s390
all entries were represented as "AT_HWCAP".
This patch fixes the condition which determines if _dl_procinfo
is called and adjusts _dl_procinfo implementations which assumed
that they are only called for AT_HWCAP or AT_HWCAP2.
A further question is if we should always call _dl_procinfo without a
condition and let it decide if it is able to print an entry or if it
should be printed with help of the auxvars list?
Okay to commit?
Once it is committed I would also backport it to glibc 2.29 release branch.
Bye,
Stefan
ChangeLog:
* elf/dl-sysdep.c (_dl_show_auxv): Fix condition if _dl_procinfo
is called.
* sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
Ignore types other than AT_HWCAP.
* sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
* sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20190308_ldshowauxv.patch
Type: text/x-patch
Size: 3021 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20190308/f523accc/attachment.bin>
More information about the Libc-alpha
mailing list