This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
RE: [Patch] elfutils patch for relocation type
- From: "Mao, Bibo" <bibo dot mao at intel dot com>
- To: "Roland McGrath" <roland at redhat dot com>
- Cc: <systemtap at sources dot redhat dot com>
- Date: Fri, 21 Apr 2006 16:54:49 +0800
- Subject: RE: [Patch] elfutils patch for relocation type
In IA64 RHEL4-U3 kernel version, R_IA64_SECREL32LSB is regarded as invalid relocation type. Here I refreshed patch as follows:
--- elfutils-0.120/backends/ia64_symbol.c 2006-04-04 18:17:37.000000000 -0400
+++ elfutils-0.120.bak/backends/ia64_symbol.c 2006-04-21 09:18:15.000000000 -0400
@@ -110,10 +110,12 @@ ia64_reloc_simple_type (Ebl *ebl, int ty
switch (type)
{
case R_IA64_DIR32MSB:
+ case R_IA64_SECREL32MSB:
if (ebl->data == ELFDATA2MSB)
return ELF_T_WORD;
break;
case R_IA64_DIR32LSB:
+ case R_IA64_SECREL32LSB:
if (ebl->data == ELFDATA2LSB)
return ELF_T_WORD;
break;
Thanks
Bibo,mao
>-----Original Message-----
>From: Roland McGrath [mailto:roland@redhat.com]
>Sent: 2006年4月14日 4:58
>To: Mao, Bibo
>Cc: systemtap@sources.redhat.com
>Subject: Re: [Patch] elfutils patch for relocation type
>
>Those changes are definitely wrong for the non-ia64 cases. The only relocs
>that can be handled here are ones that encode simple absolute values. It
>only matters to handle the flavors that ever actually appear in .debug_*
>sections. Please cite the particular relocs you are having trouble with.
>
>The elfutils tests/dwflmodtest program is an easy way to check
>a kernel build's modules for reloc issues. Use -K <version> for
>/lib/modules/<version>, or -K /path for some other location of the
>installed modules.
>
>
>Thanks,
>Roland