This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

Thanks,

Mark

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]