Don't attempt to compress bss sections
Alan Modra
amodra@gmail.com
Fri Sep 23 06:49:56 GMT 2022
On Fri, Sep 23, 2022 at 08:33:05AM +0200, Jan Beulich wrote:
> On 23.09.2022 04:26, Alan Modra via Binutils wrote:
> > It doesn't make sense to try to compress a section without contents
> > since those sections take no space on disk. Compression can only
> > increase the disk image size.
> >
> > * coffgen.c (make_a_section_from_file): Exclude !SEC_HAS_CONTENTS
> > sections from compression and decompression.
> > * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
>
> So I'm curious - are there debugging sections without contents? Or
> is the change more for the sake of documentation?
There are fuzzers that try any mad thing.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list