This is the mail archive of the
mailing list for the elfutils project.
Re: [patch] Resolve ppc64 func descriptors as .func (via .opd)
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 04 Dec 2012 16:18:04 +0100
- Subject: Re: [patch] Resolve ppc64 func descriptors as .func (via .opd)
On Tue, 2012-12-04 at 16:11 +0100, Jan Kratochvil wrote:
> On Tue, 04 Dec 2012 16:02:00 +0100, Mark Wielaard wrote:
> > When I use gdb on a ppc64 binary (bash in this case), it handles
> > function names normally as I expect (without needing to prefix a dot).
> > (gdb) break get_tty_state
> > Breakpoint 1 at 0x1004ced0: get_tty_state. (2 locations)
> The resolution above is from a DWARF symbol, this is irrelevant to the
> elfutils issue.
I do think both examples are relevant. We don't really care whether it
is a "DWARF" or "ELF" symbol, since what we want is mapping a code
address to a name. We don't have to add extra dots in front of the
actual function names. We already have the real function name. IMHO you
are doing extra work to mangle a normal name into something that
resembles an artificial BFD symbol name. And that is what I think is
irrelevant in the elfutils case.