https://sourceware.org/bugzilla/show_bug.cgi?id=33062

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
  -N, --numeric-addresses    Do not find symbol names for addresses in DWARF
                             data

So eu-readelf will try to print all addresses found through print_dwarf_addr.
Without -N print_dwarf_addr will call dwfl_module_addrinfo (dwflmod, address,
&off, &sym, NULL, NULL, NULL).

dwfl_module_addrinfo is a wrapper around __libdwfl_addrsym defined in
libdwfl/dwfl_module_addrsym.c

__libdwfl_addrsym does a search through the (virtual) symbol table associated
with the given Dwfl_Module. This is basically a linear search through the
table(s) (it will try the global symbols first, then the local symbols).

Obviously it would be much faster if on first search it would sort the symbols
by address/range, so it could do some kind of binary search.

What makes this slightly tricky is that symbols/addresses should be sorted by
address range (with zero sized symbols being preferred only if there is no
symbols with an address range closer) and symbols also being sorted by
binding_value and the symbol matching must be associated with the section
associated with the address (I symbol can be defined in a section, but have a
value outside that section).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to