From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99784 invoked by alias); 27 Jul 2019 14:28:05 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 99759 invoked by uid 48); 27 Jul 2019 14:28:01 -0000 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libdw/24856] dwarf_diename() cannot get correct name Date: Sat, 27 Jul 2019 14:28:00 -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: critical X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 X-SW-Source: 2019-q3/txt/msg00085.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24856 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at klomp dot org --- Comment #2 from Mark Wielaard --- (In reply to Changbin Du from comment #0) > The allfcts get all symbols as the same name. > elfutils/tests$ ./allfcts ../../linux/kernel/iomem.o=20 > [...] > But dwfl API works: > elfutils/tests$ ./funcretval -e ../../linux/kernel/iomem.o=20 This is because the iomem.o ET_REL file has relocations between the debug sections. When using libdwfl those relocations are resolved automatically. = If the relocations aren't resolved before using the plain libdw interfaces it looks like all references into the .debug_str section look like pointing to= the "zero string" (which happens to be [ 0] "x86_coreid_bits"). --=20 You are receiving this mail because: You are on the CC list for the bug.