This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR ld/18277: --compress-debug-sections=zlib may generate larger debug sections


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]