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

Re: [PATCH] Don't dwz-compress file with compressed debug section



On Wed, Mar 06, 2019 at 04:31:07PM +0100, Tom de Vries wrote:
> Hi,
> 
> When running dwz with an executable containing compressed debug sections we
> get:
> ...
> $ gcc -g ~/hello.c
> $ objcopy --compress-debug-sections a.out
> $ dwz a.out
> dwz: a.out: DWARF version 0 unhandled
> ...
> 
> Fix this by emitting an appropriate error message:
> ...
> dwz: a.out: Found compressed .debug_aranges section, not attempting dwz \
>   compression
> ...
> 
> OK for trunk?
> 
> Thanks,
> - Tom
> 
> Don't dwz-compress file with compressed debug section
> 
> 2019-02-14  Tom de Vries  <tdevries@suse.de>
> 
> 	PR dwz/24174
> 	* dwz.c (read_dwarf): Return 1 on finding compressed debug section.
> 	* testsuite/dwz.tests/pr24174.sh: New test.

LGTM, thanks.

	Jakub