[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#931891: dh_dwz: handle compressed debug sections?



Control: reassign -1 dwz

Matthias Klose:
> Package: debhelper,lintian
> Severity: wishlist
> 
> dwz currently doesn't handle compressed debug sections.  In the first place, why
> should we have these, because or dbg packages are compressed anyway. otoh, these
> are enabled by some upstreams like ruby.
> 
> So what dh_dwz could do, is
> 
>  - look for SHF_COMPRESSED
>  - objcopy --decompress-debug-sections
>  - dwz
>  - objcopy --compress-debug-sections
> 
> Or lintian could just warn about compressed debug sections.
> 

Alternatively, dwz(1) could transparently decompress the debug sections,
do its thing and just leave the optimized file decompressed (or
recompress it).  Given dwz already knows how to detect this and is
parsing ELF binaries at an entirely different level than debhelper, it
is much better suited for this kind of logic (compared to debhelper).

Based on #933541, it would seem that golang is also using compressed
debug sections by default now.

Thanks,
~Niels


Reply to: