On Sat, Dec 22, 2012 at 02:52:02AM +0100, Jan Kratochvil wrote:
This violates ELF standard for the application callers of
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.