This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH 2/2] libdwfl: Add minisymtab support.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Sat, 22 Dec 2012 22:50:03 +0100
- Subject: Re: [PATCH 2/2] libdwfl: Add minisymtab support.
On Sat, Dec 22, 2012 at 02:52:02AM +0100, Jan Kratochvil wrote:
> This violates ELF standard for the application callers of dwfl_module_getsym:
> In each symbol table, all symbols with STB_LOCAL binding precede the
> weak and global symbols.
I am not sure someone wanting these kind of ELF specifics should use
really use libdwfl to access the symbol table. They might be better of
accessing the symbol table directly after getting at the actual Elf
they are interested in. That said it shouldn't be hard to interweave
the tables so that locals from both come before the globals of both by
keeping track of the sh_link first global number like we already do for
the main file. It will also enable the use of the optimization in
dwfl_module_addrsym if we know the first global. I'll implement that.