[Bug translator/9792] probefunc() returns absolute address instead of the function name
mjw at redhat dot com
sourceware-bugzilla@sourceware.org
Sun Feb 1 15:57:00 GMT 2009
------- Additional Comments From mjw at redhat dot com 2009-02-01 11:10 -------
The patch to elfutils in the description is indeed the culprit.
7d9b821d "Fix last fix: ET_DYN addresses are taken as relative to MOD->low_addr."
The problem that this fixes is that dwfl_module_relocate_address now returns an
actual relocated address for kernel symbol addresses relative to the "load
address" (since the kernel is ET_DYN). Previously it would just substract
main.bias (or even more wrongly debug.bias) both of which were always zero for
the kernel.
Luckily all we need is the address relative to _stext. So all we need to do is
make sure that the extra_offset we calculate based on the _stext address is also
relocated (currently we don't do this for the _stext address, but we do for all
sym.addr). That should work whether we use an elfutils with or without this bugfix.
Testing a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |roland at redhat dot com
AssignedTo|systemtap at sources dot |mjw at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=9792
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list