This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[Bug libdw/24856] dwarf_diename() cannot get correct name
- From: "mark at klomp dot org" <sourceware-bugzilla at sourceware dot org>
- To: elfutils-devel at sourceware dot org
- Date: Sat, 27 Jul 2019 14:28:00 +0000
- Subject: [Bug libdw/24856] dwarf_diename() cannot get correct name
- Auto-submitted: auto-generated
- References: <bug-24856-10460@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24856
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Changbin Du from comment #0)
> The allfcts get all symbols as the same name.
> elfutils/tests$ ./allfcts ../../linux/kernel/iomem.o
> [...]
> But dwfl API works:
> elfutils/tests$ ./funcretval -e ../../linux/kernel/iomem.o
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").
--
You are receiving this mail because:
You are on the CC list for the bug.