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 264CE3858C56 for ; Thu, 13 Oct 2022 14:40:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 264CE3858C56 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=wildebeest.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=wildebeest.org Received: from tarox.wildebeest.org (83-87-18-245.cable.dynamic.v4.ziggo.nl [83.87.18.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 29E9A3039EAA; Thu, 13 Oct 2022 16:40:37 +0200 (CEST) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id E2955413CD0E; Thu, 13 Oct 2022 16:40:36 +0200 (CEST) Message-ID: <7d9993c1526de965d7f9b4018c6a3d4b42659259.camel@wildebeest.org> Subject: Re: [PATCH v2] tests: do not fail on zero sized DIEs (binutils-2.39 compatible) From: Mark Wielaard To: Sergei Trofimovich Cc: elfutils-devel@sourceware.org Date: Thu, 13 Oct 2022 16:40:36 +0200 In-Reply-To: References: <20220806085310.2603348-1-slyich@gmail.com> <20220807183138.3567436-1-slyich@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.28.5 (3.28.5-10.el7) Mime-Version: 1.0 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, On Mon, 2022-08-08 at 01:17 +0200, Mark Wielaard wrote: > 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: > >=20 > > FAIL: run-low_high_pc.sh > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > >=20 > > [b] main.c > > [2d] main > >=20 > > [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 <=3D lowpc > > FAIL run-low_high_pc.sh (exit status: 255) > >=20 > > To work it around let's allow lowpc =3D=3D highpc special case. > >=20 > > https://sourceware.org/bugzilla/show_bug.cgi?id=3D29450 >=20 > 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. >=20 > I added a comment to the binutils bug: > https://sourceware.org/bugzilla/show_bug.cgi?id=3D29451#c2 Since this binutils bug was fixed I assume this patch isn't needed anymore. Thanks, Mark