[PATCH] Remove unused dl-procinfo.h

Florian Weimer fweimer@redhat.com
Thu Feb 13 11:32:34 GMT 2025


* Wilco Dijkstra:

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

GLRO and GL currently serve dual purposes: sharing data between ld.so
and libc.so, and optimizing data references, particuarly on RISC
targets.  I think on AArch64, the compiler would generate separate adrp
instructions for _dl_var1 and _dl_var2 accesses, while GLRO(dl_var1)
and GLRO(dl_var2) just need one adrp.  As an optimization, it is
probably not important.

It might also make sense to move off GL/GLRO for ld.so/libc.so sharing
and use separate symbols, although that has more of an overhead due to
more symbol binding activity and GOT accesses.  A better strategy might
be to reduce libc.so dependencies, and copy over data (such as the page
size) during __libc_early_init.
rs.

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

If you can find a way to make incremental improvements here, that would
be great.

Thanks,
Florian



More information about the Libc-alpha mailing list