I am just extracting some bits of discussion in the RPM 1 ticket:
--- Additional comment from Mark Wielaard on 2016-11-14 13:36:50 CET ---
--compress-debug-sections=zlib doesn't really make sense when using dwz. And various tools don't support it anyway. It causes slow startup of tracing, performance or debugging tools using more memory.
elfutils 0.165+ does support compressed debug sections (both the new gabi zlib and gnu zlib styles) but dwz doesn't.
On Fedora binutils compressed debug sections are disabled by default, so it shouldn't be an issue there. If you are seeing this issue on Fedora then it is a bug in the binutils package (or the package/build accidentally enabled it).
In other cases it is probably best to just always make sure the sections are uncompressed running eu-elfcompress --type=none FILE.
--- Additional comment from Mark Wielaard on 2016-11-14 16:21:15 CET ---
(In reply to Vít Ondruch from comment #5)
> > > > In other cases it is probably best to just always make sure the sections are
> > > > uncompressed running eu-elfcompress --type=none FILE.
> > >
> > > Why this is not done by default, if the tooling discovers there is
> > > compressed debug info?
> >
> > Because most tooling doesn't deal with compressed ELF sections. Compressed
> > ELF sections and eu-elfcompress is relatively new (only a couple of months
> > since the first stable release). So it never has been an issue.
> > And if people do use compressed ELF sections it exposes issues like this.
>
> So my question is will you eventually support this (i.e. keep this RFE
> open), or are you going to reject this based on the statement below? :)
>
> > Personally I would encourage people to disable and ignore it.
The real "fix" would be to get all tools, like dwz in this case, to handle it. Adding an eu-elfcompress --type=none call for all files that rpm might feed to tools that manipulate ELF files is kind of a kludge IMHO. Better done at the package level if they have to deal with compressed ELF sections anyway. But maybe the rpm maintainers might decide that is a good thing. I won't close this RFE myself.