Can't insert probes on Module Funcions
Eugeniy Meshcheryakov
eugeniy.meshcheryakov@googlemail.com
Fri Sep 15 10:18:00 GMT 2006
15 вересня 2006 о 11:05 +0800 bibo,mao написав(-ла):
> I ever debug this problem and found that unsupported relocation type is
> IA64_SECREL32LSB.
> in the output result of eu-readelf, relocation type about IA64_SECREL32LSB
> is all in
> .debug_str/.debug_xxx section.I am not familiar with elf-utils tools, I do
> not know whether
> elfutils will analyse .debug_xxx section.
Elfutils will analyse only sections with debug information in that
case.
The simplest "solution" to that problem is to add R_IA64_SECREL32LSB
relocation to ia64_symbol.c:
diff -urpN elfutils-0.123/backends/ia64_symbol.c elfutils-0.123.mod/backends/ia64_symbol.c
--- elfutils-0.123/backends/ia64_symbol.c 2006-04-13 17:04:56.000000000 +0200
+++ elfutils-0.123.mod/backends/ia64_symbol.c 2006-09-15 12:07:51.000000000 +0200
@@ -114,6 +114,7 @@ ia64_reloc_simple_type (Ebl *ebl, int ty
return ELF_T_WORD;
break;
case R_IA64_DIR32LSB:
+ case R_IA64_SECREL32LSB:
if (ebl->data == ELFDATA2LSB)
return ELF_T_WORD;
break;
With that patch systemtap will be able to compile probes, but I do not
think they will work correctly (at least not allways). Eflutils probably
needs more powerful hooks for relocations.
--
Eugeniy Meshcheryakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/systemtap/attachments/20060915/c4e720e6/attachment.sig>
More information about the Systemtap
mailing list