This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/9792] probefunc() returns absolute address instead of the function name
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 1 Feb 2009 11:10:52 -0000
- Subject: [Bug translator/9792] probefunc() returns absolute address instead of the function name
- References: <20090127100051.9792.kamalesh@linux.vnet.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.