inconsistent module relocation in elfutils

Frank Ch. Eigler fche@redhat.com
Fri Nov 4 20:08:00 GMT 2005


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



More information about the Systemtap mailing list