[patch] Resolve ppc64 func descriptors as .func (via .opd)
Jan Kratochvil
jan.kratochvil at redhat.com
Mon Nov 19 12:14:47 UTC 2012
On Mon, 19 Nov 2012 11:37:20 +0100, Mark Wielaard wrote:
> On Sun, 2012-11-18 at 18:25 +0100, Jan Kratochvil wrote:
> > (gdb) bt
> > #0 0x00000000100004d0 in .f ()
> > #1 0x0000000010000500 in .main ()
>
> IMHO that is just weirdness/bug in GDB.
No matter what it is it is a standard.
> > You need about that looked up function symbol also the function size, starting
> > code address, visibility and binding. It is mostly the whole GElf_Sym
> > structure (except you do not need numerical st_name and st_shndx is probably
> > also not useful). This is all returned by dwfl_module_addrsym in my original
> > post.
>
> OK, but you can just use the function descriptor symbol for that can't
> you? There is nothing an synthetic generated symbol would add is there?
In the function descriptor symbol ST_VALUE points to the descriptor.
In the synthetic generated symbol ST_VALUE points to the code entry address.
Jan
More information about the elfutils-devel
mailing list