Changes between Initial Version and Version 1 of Ticket #5401
- Timestamp:
- 12/26/2023 12:48:19 PM (11 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5401
- Property Summary GCC: Add --with-linker-hash-style=gnu for configure → Binutils: Add --enable-default-hash-style=gnu for configure
-
Ticket #5401 – Description
initial v1 1 1 Shared objects and dynamically linked executables contain hash tables for ld.so to look up symbols in them. By default two hash tables are generated, one is classic ELF style (in the .hash section), another is GNU style (in the .gnu.hash section). 2 2 3 Since the GNU-style hash table can be looked up faster than a classic one, on a modern system where ld.so supports .gnu.hash, the .hash section is actually unused at all so we can configure GCC with `--with-linker-hash-style=gnu` so itwon't generate .hash by default and save build time & disk space.3 Since the GNU-style hash table can be looked up faster than a classic one, on a modern system where ld.so supports .gnu.hash, the .hash section is actually unused at all so we can configure Binutils with `--enable-default-hash-style=gnu` so it (ld.bfd and ld.gold) won't generate .hash by default and save build time & disk space. 4 4 5 5 Note that Glibc >= 2.36 is already built with .hash disabled by default, thus anything other than ld.so depending on .hash (note that gABI disallows such an abuse of .hash anyway) should be already broken on LFS (for example "a notorious non-cooperative binary package").