[PATCH] Remove unused dl-procinfo.h

Peter Bergner bergner@linux.ibm.com
Thu Feb 13 00:39:07 GMT 2025


On 11/26/24 11:06 AM, Adhemerval Zanella Netto wrote:
> On 26/11/24 13:03, Peter Bergner 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.
> 
> We discussed this briefly some time ago [1], and my take was this debug
> information is not a hard requirement.  And it is not really consistent
> over architectures where aarch64 defines dl_aarch64_cap_flags, but does not
> add the debug print hook.
> 
> If you think we should really keep it, maybe then keep the removal of
> the ones that are either empty (alpha, csky) or unused (aarch64, x86) along
> with _dl_hwcap_string (which is unused since the glibc-hwcap), and
> them move dl_<arch>_cap_flags out of _rtld_global and make it local 
> to _dl_procinfo.

I find LD_SHOW_AUXV=1 /bin/true pretty handy, but if removing it cleans
things up and makes the code simpler, I won't stand in the way.  I can
always code up a little program to replicate its output.

Peter



More information about the Libc-alpha mailing list