This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
inconsistent module relocation in elfutils
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Fri, 4 Nov 2005 15:08:13 -0500
- Subject: inconsistent module relocation in elfutils
Hi, Roland -
As a part of my work with but #1329, I've found that different kernel
builds work differently with the same elfutils/systemtap code with
respect to module relocation. The 'kernel' module appears to work
consistently.
Specifically, with some kernel versions (e.g. 2.6.13-1.1532_FC4) I
find that the GElf_Shdr sh_addr fields of .text-like sections are
correctly relocated, and for other kernel versions (2.6.9-22.EL), that
field is left at zero. Can you suggest an explanation or workaround?
Test thusly (cvs systemtap, elfutils .116):
% stap -p2 -e 'probe module("nfs").function("init_nfs_fs") {}' -v |& grep skip
One can put a breakpoint at tapsets.cxx:1673 and look at variable "*shdr".
- FChE