From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 4809A38582BA for ; Sun, 7 Aug 2022 23:17:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4809A38582BA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from reform (deer0x0c.wildebeest.org [172.31.17.142]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 97FE930012BF; Mon, 8 Aug 2022 01:17:57 +0200 (CEST) Received: by reform (Postfix, from userid 1000) id 39BD42E80D94; Mon, 8 Aug 2022 01:17:57 +0200 (CEST) Date: Mon, 8 Aug 2022 01:17:57 +0200 From: Mark Wielaard To: Sergei Trofimovich Cc: Martin =?utf-8?B?TGnFoWth?= , elfutils-devel@sourceware.org Subject: Re: [PATCH v2] tests: do not fail on zero sized DIEs (binutils-2.39 compatible) Message-ID: References: <20220806085310.2603348-1-slyich@gmail.com> <20220807183138.3567436-1-slyich@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220807183138.3567436-1-slyich@gmail.com> X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2022 23:18:00 -0000 Hi Sergei, On Sun, Aug 07, 2022 at 07:31:38PM +0100, Sergei Trofimovich via Elfutils-devel wrote: > binutils started producing 0-sized DIEs on functions interspersed > by nested sections (".section ...; .previous). This led to > run-low_high_pc.sh failure in form of: > > FAIL: run-low_high_pc.sh > ======================== > > [b] main.c > [2d] main > > [b] ../sysdeps/i386/start.S > [26] _start > [40] ../sysdeps/x86/abi-note.c > [b52] init.c > [b8e] static-reloc.c > [2dba] _dl_relocate_static_pie > [2dd8] ../sysdeps/i386/crti.S > [2def] _init > lowpc: 8049000, highpc: 8049000lx > ../sysdeps/i386/crti.S: [2def] '_init' highpc <= lowpc > FAIL run-low_high_pc.sh (exit status: 255) > > To work it around let's allow lowpc == highpc special case. > > https://sourceware.org/bugzilla/show_bug.cgi?id=29450 Thanks for finding this and suggesting a workaround. But lets first try to fix binutils. This seems like a pretty bad bug, lets hope it gets fixed soon. So we don't need these kind of workarounds. I added a comment to the binutils bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29451#c2 Cheers, Mark