[patch] readelf: Incorrect interpretation of MIPS64 relocations
Daniel Jacobowitz
drow@false.org
Mon Apr 4 14:45:00 GMT 2005
On Mon, Apr 04, 2005 at 03:42:26PM +0100, Maciej W. Rozycki wrote:
> Hello,
>
> When parsing DWARF2 information readelf interprets MIPS64 symbol indices
> incorrectly. "Skipping unexpected symbol type" messages result. MIPS64
> relocations are laid out a bit unusually, due to the need to encode three
> relocation types in a single entry. We have suitable code to deal with it
> when dumping relocations in dump_relocations(), but it's missing from
> debug_apply_rela_addends() which is used for DWARF2 processing.
>
> The following patch fixes the problem for me.
>
> 2005-04-04 Maciej W. Rozycki <macro@linux-mips.org>
>
> * readelf.c (debug_apply_rela_addends): Reorder r_info as
> necessary for 64-bit MIPS.
>
> OK to apply?
FYI, I had something similar in my pile of
submit-when-you-can-find-a-chance patches. Rather than duplicating the
code here, I moved it from dump_relocations to slurp_rela_relocs; that
way we won't need to duplicate it elsewhere.
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Binutils
mailing list