In ELF executables and DSOs, .symtab and .strtab sections can consume a significant portion of the file size (10+% or even 20+%). In many scenarios, we cannot remove them due to symbolizers (crash reporters, Linux perf, etc) and other analysis tools. When .gnu_debugdata (MiniDebugInfo) is used, the separate debug files contain .symtab/.strtab. The standard SHF_COMPRESSED feature can be used with non-SHF_ALLOC sections. Itβs natural to compress .symtab and .strtab. This usage doesn't need amendment to the generic ABI. * ld/objcopy: If --compress-sections (PR 27452) is supported, just specify: --compress-sections .strtab=zstd --compress-sections .symtab=zstd * BFD (nm, objdump, etc): reader support * readelf: reader support
In PR29584, mjw was keen on switching to making .gnu_debugdata a proper SHF_COMPRESSED section.
We're currently considering (_very_ provisionally) whether to (start to) adopt MiniDebugInfo in Gentoo. Are we going to bother trying to migrate to this, or should we go ahead with the MDI form?