Use index of first global symbol to speed up dwfl_module_addrsym search.
authorMark Wielaard <mjw@redhat.com>
Mon, 31 Oct 2011 22:17:06 +0000 (23:17 +0100)
committerMark Wielaard <mjw@redhat.com>
Tue, 1 Nov 2011 09:03:51 +0000 (10:03 +0100)
commitef431cd30b8a1a6b12a8783516fc95da88a9a636
treef60b6a0d80076984a777db5f109dd84502f31c52
parent75ee33f4eee8570d3cf1abf778413276184eea18
Use index of first global symbol to speed up dwfl_module_addrsym search.

Cache the index of the first global symbol in the module's symbol table,
or -1 when unknown.  All symbols with local binding come first in the
symbol table before the global symbols.  Use this information to speed
up dwfl_module_addrsym search.
libdwfl/ChangeLog
libdwfl/dwfl_module_addrsym.c
libdwfl/dwfl_module_getdwarf.c
libdwfl/libdwflP.h