This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: MiniDebugInfo support
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 14 Dec 2012 20:52:49 +0100
- Subject: Re: MiniDebugInfo support
On Tue, 06 Nov 2012 18:50:27 +0100, Mark Wielaard wrote:
> On Tue, Nov 06, 2012 at 03:32:11PM +0100, Martin Milata wrote:
> > 2) What is the right way to add the support for it to the library?
>
> If there is no symtab/strtab available I guess this could be used
> as fallback for dwfl_module_getsymtab()/dwfl_module_getsym().
I have provided such feature for the ppc64 .opd symbols provider in:
[patch 1/3] ppc64 .opd: Refactor syments/first_global
Message-ID: <20121214193310.GA5500@host2.jankratochvil.net>
https://lists.fedorahosted.org/pipermail/elfutils-devel/2012-December/002839.html
and
[patch 3/3] ppc64 .opd: Bidirectional provider
Message-ID: <20121214194144.GC5500@host2.jankratochvil.net>
https://lists.fedorahosted.org/pipermail/elfutils-devel/2012-December/002840.html
Therefore besides ebllocals + eblglobals there could also be provided for
example minidebuglocals + minidebugglobals.
ppc64 .opd is dependent on EBL as it is arch dependent and EBL is only in
Dwfl_Module (not in Elf). While arch-independent minidebuginfo support could
be implemented in libelf/ I think, therefore one would somehow extend the
current gelf_getsymshndx interface and its caller dwfl_module_getsym instead.
Although Mark suggests Dwfl_Module above, not Elf, not sure if there are
reasons for it. Maybe libdwfl/ matches such high level feature better.
Regards,
Jan