debug problem with prelinked libraries
Jan Kratochvil
jan.kratochvil@redhat.com
Fri May 7 13:23:00 GMT 2010
On Wed, 05 May 2010 16:59:36 +0200, Andrew Stubbs wrote:
> > prelink includes code to manipulate the contents of the debug info.
[...]
> Maybe prelink has failed to relocate the debug info in this case?
The attached patch should fix it.
Although SHT_MIPS_DWARF value should be recognized only for e_machine as
EM_MIPS or EM_MIPS_RS3_LE or EM_MIPS_X? Or are there some other rules?
Regards,
Jan
--- prelink/src/dso.c-orig 2010-04-13 16:41:15.000000000 +0200
+++ prelink/src/dso.c 2010-05-07 15:16:25.000000000 +0200
@@ -1381,6 +1381,7 @@ adjust_dso (DSO *dso, GElf_Addr start, G
switch (dso->shdr[i].sh_type)
{
case SHT_PROGBITS:
+ case SHT_MIPS_DWARF:
name = strptr (dso, dso->ehdr.e_shstrndx, dso->shdr[i].sh_name);
if (strcmp (name, ".stab") == 0
&& adjust_stabs (dso, i, start, adjust))
More information about the Gdb
mailing list