From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 7539D3858C39 for ; Thu, 13 Oct 2022 18:13:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7539D3858C39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-x42f.google.com with SMTP id bk15so4044974wrb.13 for ; Thu, 13 Oct 2022 11:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=p5RzYR+Plp9VNn8ceoYKklIiwdsaqyW+RCY7ex/R9Fk=; b=V3BUmtdsM4sn0Bp6GeBTCF4TgbRCWIS7k2bDZKd0h/Bzsk/ZC78XMicS01EQDMVCGg FMhqkuD5D4K/bg9OoJ+gctjiAio8fEzYC6+O2MVPyDLvnFsnvqo7NrOjU7pb1U9Ohd95 vEDdjv2/7h2eK2BV3KhGQOqNp2Gbrmm9YH420UrDth7yk1B7cNG6zC4kHWFhjrbK1RWa CxfqtCpHLJ5BslkKpf9QNGu2bwEvscHFKGOp83ciu1XgXjkcJG7mHzwjbwMrYbiHZ8ub SY6e7RHI+wEXglzsMgQfL2MWQOjBAd4YZdWxzhlnossVbIUF504v4kvTP8F0vzKzI5e/ aexQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p5RzYR+Plp9VNn8ceoYKklIiwdsaqyW+RCY7ex/R9Fk=; b=eXeSbF0H0IZbGxU93h4aTzFlGeFLiVlAqXBa02SryqHwVdI1doBI554+hUD2FJExN6 zF1S3a+CtbBmvaqu0kwojm0ybjqIdwXB7D3aiuOpTE2nX7RmceQdGDsk8HHE7RbFh2bx YXHbGZc5csO5y4CdQFBXIjhHBfOvKDhcPBRCs+xoTyLrZ5Jj0ZGJ3+gFmWLXdaU8GcMm BQjYkrf6NC/OyPAXY4R1rFsh8Bx7qmSD2Ff/U4oFOhx1NMtornrI6h4MSlIHXxskv1De R0cR4IoqtNZ51XPWuUlPmpfXoEO08exI5+YItZ5owtjP+yhOFk7WUjBkyuS0YdI7kRy/ Ynfg== X-Gm-Message-State: ACrzQf3ASLONZtfAgH+pk/XX5FwG1Ak7hK6zArkm6B9CVaP/CH50eMB7 EHR1Kg/P/UwtBXV48HIgqcE= X-Google-Smtp-Source: AMsMyM6nRSltHUEYgG8mJR2kgXj9EsBkXZ6T88wSnL42Oi/6cvLsDGVp/wDtCNwME2M9H8BvLviuew== X-Received: by 2002:a5d:5a05:0:b0:22e:5b81:c295 with SMTP id bq5-20020a5d5a05000000b0022e5b81c295mr846195wrb.588.1665684834111; Thu, 13 Oct 2022 11:13:54 -0700 (PDT) Received: from nz (host81-147-8-29.range81-147.btcentralplus.com. [81.147.8.29]) by smtp.gmail.com with ESMTPSA id q1-20020adfdfc1000000b0022e049586c5sm207307wrn.28.2022.10.13.11.13.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 11:13:53 -0700 (PDT) Date: Thu, 13 Oct 2022 19:13:52 +0100 From: Sergei Trofimovich To: Mark Wielaard Cc: elfutils-devel@sourceware.org Subject: Re: [PATCH v2] tests: do not fail on zero sized DIEs (binutils-2.39 compatible) Message-ID: <20221013191352.05863890@nz> In-Reply-To: <7d9993c1526de965d7f9b4018c6a3d4b42659259.camel@wildebeest.org> References: <20220806085310.2603348-1-slyich@gmail.com> <20220807183138.3567436-1-slyich@gmail.com> <7d9993c1526de965d7f9b4018c6a3d4b42659259.camel@wildebeest.org> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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: On Thu, 13 Oct 2022 16:40:36 +0200 Mark Wielaard wrote: > 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: > > > > > > 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 > > Since this binutils bug was fixed I assume this patch isn't needed > anymore. Agreed. https://sourceware.org/PR29450#c8 cosed the bug as RESOLVED/MOVED to declare it a binutils deficiency. Downstream use binutils-2.39 with a gas patch and are able to run unmodified elfutils testsuite as is. Thank you! -- Sergei