Hi,
When the same address is pointed to by many symbols, it seems gprof does
everything to make the right choice for the symbol name to use ... except
filling the Sym structure correctly. Here is a patch.
diff --git a/gprof/corefile.c b/gprof/corefile.c
--- a/gprof/corefile.c
+++ b/gprof/corefile.c
@@ -573,7 +573,7 @@
}
}
- symtab.limit->is_func = TRUE;
+ symtab.limit->is_func = (core_syms[i]->flags & BSF_FUNCTION) != 0;
symtab.limit->is_bb_head = TRUE;
if (class == 't')
(please cc me, i'm not on the list)
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils