From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by sourceware.org (Postfix) with ESMTP id 07F54385BF9E for ; Tue, 23 Mar 2021 14:28:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 07F54385BF9E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ldv@altlinux.org Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 4654872C8B9; Tue, 23 Mar 2021 17:28:52 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 36E237CC8AA; Tue, 23 Mar 2021 17:28:52 +0300 (MSK) Date: Tue, 23 Mar 2021 17:28:52 +0300 From: "Dmitry V. Levin" To: Mark Wielaard Cc: debugedit@sourceware.org, Vitaly Chikunov Subject: Re: [PATCH] tests: fix for toolchains producing compressed debug sections Message-ID: <20210323142852.GA15238@altlinux.org> References: <20210322200000.GA3531@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: debugedit@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: debugedit development mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2021 14:28:54 -0000 On Tue, Mar 23, 2021 at 03:20:12PM +0100, Mark Wielaard wrote: > On Mon, 2021-03-22 at 20:00 +0000, Dmitry V. Levin wrote: > > When toolchain produces compressed debug sections by default, > > quite a few debugedit tests fail because of unexpected > > "debugedit: ./foo.o: DWARF version 0 unhandled" error diagnostic messages: > > 3: debugedit .debug_str objects DWARF4 FAILED (debugedit.at:97) > > 4: debugedit .debug_str/line_str objects DWARF5 FAILED (debugedit.at:129) > > 9: debugedit .debug_info objects FAILED (debugedit.at:291) > > 12: debugedit .debug_types objects FAILED (debugedit.at:370) > > 15: debugedit .debug_line objects DWARF4 FAILED (debugedit.at:460) > > 16: debugedit .debug_line objects DWARF5 FAILED (debugedit.at:484) > > 21: debugedit .debug_macro objects FAILED (debugedit.at:598) > > > > Fix this by instructing gcc not to produce compressed debug sections > > in object files prepared for debugedit tests. > > > > * tests/debugedit.at: Add "-gz=none" to "gcc -g3" invocations. > > Yes, that is a good workaround for now. > But we should at least give a good error message. > And ideally just handle compressed debug ELF sections (But then the > question is how? Do we always simply decompress, do we require an > explicit command line option? Do we simply recompress when done?) > > I filed https://sourceware.org/bugzilla/show_bug.cgi?id=27636 > > > Co-authored-by: Vitaly Chikunov > > And Signed-off-by: Dmitry V. Levin , I assume? Yes, Signed-off-by: Dmitry V. Levin -- ldv