From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EBF9C386EC33; Tue, 29 Sep 2020 11:21:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBF9C386EC33 From: "annulen at yandex dot ru" To: dwz@sourceware.org Subject: [Bug default/26674] dwz should be able to fix CRCs in .gnu_debuglink when optimizing separated debug files Date: Tue, 29 Sep 2020 11:21:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: annulen at yandex dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2020 11:21:59 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26674 --- Comment #2 from Konstantin Tokarev --- Thanks, I didn't think about that way somehow. However, I still think there= is a room for usability improvement. I think following way would be the most convenient:=20 1) we run dwz on "main" ELF files instead of extracted debug info 2) if .debug_info section is missing dwz optimizes file referenced in .gnu_debuglink and updates CRC 3) if input file looks like "debug file", i.e. file produced by objcopy --only-keep-debug, print a suggestion that dwz might need to be run on "mai= n" file or CRC will be off In this workflow it would also be possible to use multifile mode without mu= ch hassle. --=20 You are receiving this mail because: You are on the CC list for the bug.=