Hi,
I found a small bug in dwfl_module_addrsym. If no symbol with an actual
size was found for an address the sizeless_sym closest to the desired
address could be replaced with a sizeless_sym that was actually further
away. And so no sym would be returned at all. The attached patch fixes
it and adds a check to see if the whole same_section check and the
sizeless_sym update is even needed (it isn't if a full sized symbol has
already been found). Which gives a small speedup and turns up a couple
of extra symbols when inspecting vmlinux debuginfo with eu-readelf -w.
OK, to apply?
Thanks,
Mark
Show replies by date