Cross Toolchain Survey (June, 2025) #11395
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Topic Description
handle even with LTO disabled.
(HEAD: 072457058d06965a634c35c44b6ecc3c62609e56).
[^1]: Override the default value "both" which causes ld to generate both
DT_HASH and DT_GNU_HASH for link units. Those hash tables are only
intended for ld.so, and Glibc ld.so has got the DT_GNU_HASH support
in 2006. Since then if both DT_HASH and DT_GNU_HASH exists, the
former is completely ignored thus it's just wasting disk space.
One blockage for this was the combination of MIPS and ld.gold: MIPS
uses DT_MIPS_XHASH that ld.gold does not support, instead of
DT_GNU_HASH. The blockage is resolved now as ld.gold is removed.
Another blockage is some closed-source non-cooperating program is
(was?) (mis-)using DT_HASH for some strange purpose. Fortunately
the program seems only relying on DT_HASH in Glibc, so even if the
program is still not fixed and we still have to support it, we can
just enable it for Glibc instead of every package.
Link: https://wiki.linuxfromscratch.org/lfs/ticket/5401
Link: https://maskray.me/blog/2022-08-21-glibc-and-dt-gnu-hash
[^2]: https://sourceware.org/pipermail/binutils/2025-June/141825.html
Co-authored-by: Xi Ruoyao [email protected]
Package(s) Affected
Security Update?
No
Build Order
Test Build(s) Done
Primary Architectures
amd64
arm64
loongarch64
Secondary Architectures
loongson3
ppc64el
riscv64