PATCH: PR ld/18277: --compress-debug-sections=zlib may generate larger debug sections
Alan Modra
amodra@gmail.com
Thu Apr 23 22:29:00 GMT 2015
On Thu, Apr 23, 2015 at 08:58:43AM -0700, H.J. Lu wrote:
> When we set up st_name for output section name in elf_fake_sections, we
> don't know if the compressed DWARF debug section will be smaller. We may
> end up with compressed DWARF debug sections which are bigger than the
> uncompressed ones. This patch delays setting up st_name for output DWARF
> debug section to _bfd_elf_assign_file_positions_for_non_load which will
> compress the output debug section. We also postpone placement of shstrtab
> section after DWARF debug sections have been compressed. The net effect
> is .shstrtab section is now placed after .symtab and .strtab sections.
Looks OK to me.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list