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.