This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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
Attachment:
signature.asc
Description: Digital signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |