[PATCH] Remove unused dl-procinfo.h

Wilco Dijkstra Wilco.Dijkstra@arm.com
Thu Feb 13 10:23:09 GMT 2025


Hi Florian/Peter,

>> 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.

It would be interesting to find out why lscpu or cat /proc/cpuinfo isn't printing
HWCAP names like other targets - is this somehow missing from the kernel?

> I think we can introduce architecture-specific implementations for
> printing AT_HWCAP and AT_HWCAP2.  The current feature isn't inherently
> hard to support, it's just that sticking things into the middle of GLRO
> (which shared between ld.so and libc.so) causes friction for glibc
> updates.

Indeed. For the future I am wondering whether the GLRO hacks are really needed?
It seems they are mostly performance hacks that were added for ancient compilers.
I believe the dynamic linker will be much cleaner without these hacks.

We should also make it very clear which structure is actually shared with libc and
ensure its fields do not change. This would avoid the immediate crash you get when
you try using a new glibc with the system ld.so.

In the short term I can try moving the target specific fields last in the GLRO struct
so that minor changes do not cause the failure seen on AArch64.

Cheers,
Wilco


More information about the Libc-alpha mailing list