[Rpm-maint] [rpm-software-management/rpm] debugedit: Do not 'edit_dwarf2' when just extracting build-id (#1435)
Mark Wielaard
mark at klomp.org
Sun Nov 15 19:39:21 UTC 2020
On Sun, Nov 15, 2020 at 07:11:02AM -0800, Vitalio wrote:
> No need to call edit_dwarf2() if debugedit is invoked just to extract
> build-id (with `-i -n').
Yes, but you also have to check base_dir && dest_dir aren't set.
> Otherwise, we will get `DWARF version 0
> unhandled' warning for compressed .debug files:
>
> /usr/lib/rpm/debugedit: ./usr/lib/debug/...e.ko.debug: DWARF version 0 unhandled
>
> Context: We have kernel modules elfcompressed in ALT.
In general debugedit doesn't handle compressed ELF sections at the
moment. You could do as Fedora does and run eu-elfcompress -t none on
the file first to make sure it doesn't contain any compressed ELF
sections.
Cheers,
Mark
More information about the Rpm-maint
mailing list