This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] MIPS/BFD: Handle MIPS16 GOT16 and GPREL16 relocs correctly
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: "Maciej W. Rozycki" <macro at codesourcery dot com>
- Cc: binutils at sourceware dot org, Catherine Moore <clm at codesourcery dot com>, gnu-mips-sgxx at codesourcery dot com
- Date: Tue, 27 Jul 2010 19:45:18 +0100
- Subject: Re: [PATCH] MIPS/BFD: Handle MIPS16 GOT16 and GPREL16 relocs correctly
- References: <alpine.DEB.1.10.1007260203360.29495@tp.orcam.me.uk>
"Maciej W. Rozycki" <macro@codesourcery.com> writes:
> 2010-07-26 Maciej W. Rozycki <macro@codesourcery.com>
>
> bfd/
> * elfxx-mips.h: Include "elf/mips.h".
> (gprel16_reloc_p): New inline function.
> * elfxx-mips.c (_bfd_mips_elf_check_relocs)
> [R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]:
> Use got16_reloc_p.
> (_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use
> gprel16_reloc_p.
> * elf32-mips.c (mips_info_to_howto_rel): Likewise.
> * elfn32-mips.c (mips_info_to_howto_rel): Likewise.
OK, thanks. No idea how I managed to miss the GOT16 one. ;-(
Richard