From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93238 invoked by alias); 27 Jul 2019 13:40:25 -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 93212 invoked by uid 48); 27 Jul 2019 13:40:21 -0000 From: "changbin.du at gmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug libdw/24856] New: dwarf_diename() cannot get correct name Date: Sat, 27 Jul 2019 13:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: changbin.du at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: 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/msg00083.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24856 Bug ID: 24856 Summary: dwarf_diename() cannot get correct name Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: critical Priority: P2 Component: libdw Assignee: unassigned at sourceware dot org Reporter: changbin.du at gmail dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- Created attachment 11923 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D11923&action=3Ded= it object file The allfcts get all symbols as the same name. elfutils/tests$ ./allfcts ../../linux/kernel/iomem.o=20 kernel/iomem.c:162:x86_coreid_bits kernel/iomem.c:139:x86_coreid_bits kernel/iomem.c:134:x86_coreid_bits kernel/iomem.c:129:x86_coreid_bits kernel/iomem.c:122:x86_coreid_bits kernel/iomem.c:71:x86_coreid_bits kernel/iomem.c:30:x86_coreid_bits kernel/iomem.c:16:x86_coreid_bits ./include/linux/mm.h:626:x86_coreid_bits ./include/linux/device.h:1105:x86_coreid_bits ./include/linux/mmzone.h:1297:x86_coreid_bits ./include/linux/mmzone.h:1262:x86_coreid_bits ./include/linux/mmzone.h:1212:x86_coreid_bits ./include/linux/mmzone.h:1151:x86_coreid_bits ./include/linux/page-flags.h:372:x86_coreid_bits ./include/linux/err.h:24:x86_coreid_bits But dwfl API works: elfutils/tests$ ./funcretval -e ../../linux/kernel/iomem.o=20 () devm_memunmap: returns no value () devm_memremap: return value location: {0x50, 0} () devm_memremap_match: return value location: {0x50, 0} () devm_memremap_release: returns no value () memunmap: returns no value () memremap: return value location: {0x50, 0} () try_ram_remap: return value location: {0x50, 0} () arch_memremap_wb: return value location: {0x50, 0} () is_vmalloc_addr: return value location: {0x50, 0} () dev_to_node: return value location: {0x50, 0} () pfn_valid: return value location: {0x50, 0} () valid_section: return value location: {0x50, 0} () __nr_to_section: return value location: {0x50, 0} () pfn_to_section_nr: return value location: {0x50, 0} () PageHighMem: return value location: {0x50, 0} () ERR_PTR: return value location: {0x50, 0} --=20 You are receiving this mail because: You are on the CC list for the bug.