From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6ABDC3858D28; Mon, 9 Oct 2023 16:15:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6ABDC3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1696868122; bh=Qen/+Ds7lfkzIWGC/x4MCWsEzp4neFaZw72RFQorjfY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Fym/P7MyyuRShfgjDuLmJFuWpqYsOMogUujQZsWTjm/ne5KjH1DADWcr0KJQTI+WN 0AnZ7GrxM6rZg2NgFZcGIqZ6lNSAtcBKLajJIZkP8anBHnJsG3whWCL543Cmkz7OfV Td8UStKjq54ynqXuTRcTCjBecg3zFR2rnngJAeoU= From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libdw/27805] libdwfl: Unable to extract source line information for RISC-V binary Date: Mon, 09 Oct 2023 16:15:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D27805 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #8 from Mark Wielaard --- commit ace48815682214308d2f849f149250a6562c59fe Author: Mark Wielaard Date: Fri Oct 6 13:56:55 2023 +0200 libdw: Skip zero entries in aranges An address/length entry of two zeros is supposed to mark the end of a table. But in some cases a producer might leave zero entries in the table (for example when using gcc -ffunction-sections -gc-sections). Since we know the lenght of the table we can just skip such entries and continue to the end. * libdw/dwarf_getaranges.c (dwarf_getaranges): Calculate endp. When seeing two zero values, check we are at endp. https://sourceware.org/bugzilla/show_bug.cgi?id=3D27805 Signed-off-by: Mark Wielaard --=20 You are receiving this mail because: You are on the CC list for the bug.=