[PATCH] Remove unused dl-procinfo.h
Peter Bergner
bergner@linux.ibm.com
Thu Feb 13 00:50:39 GMT 2025
On 11/29/24 11:33 AM, Wilco Dijkstra wrote:
>> On 11/26/24 9:44 AM, Stefan Liebler wrote:
>>> If the intention is really to not print AT_HWCAP strings anymore, then
>>> please also remove dl_s390_cap_flags in sysdeps/s390/dl-procinfo-s390.c.
>>> I think _DL_HWCAP_COUNT can then also be removed (not only on s390).
>>
>> I hope that's not the intention, unless there is a replacement for
>> "LD_SHOW_AUXV=1 /bin/true" I don't know about. I do this all the
>> time.
>
> The dynamic linker still prints HWCAP values in hex. Pretty printing was dead code
> for most targets, hence the idea of cleaning it up. Note I've left powerpc unchanged
> since it duplicates much of 'lscpu' (which I find easier to use than the above cmd)...
>
> The reason we're looking into this is because minor changes in these target
> specific variables change the ABI of the dynamic linker. And all of that seems
> unnecessary, especially for variables that are not even used...
If removing that code, even in powerpc, helps stabalize the dynamic linker ABI,
then go ahead and remove it. My main use of LD_SHOW_AUXV=1 was actually to look
at the HWCAP values, but hex values aren't easily readable by me and lscpu doesn't
print them either. That said, I can pretty easily come up with some program to
pretty print them for me, so I won't hold up the cleanup.
Peter
More information about the Libc-alpha
mailing list