This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: R_MIPS_PC16, again
- From: Thiemo Seufer <ths at networkno dot de>
- To: binutils at sourceware dot org
- Date: Tue, 22 Nov 2005 21:34:59 +0100
- Subject: Re: R_MIPS_PC16, again
- References: <20051121201334.GA28901@nevyn.them.org>
Daniel Jacobowitz wrote:
[snip]
> 2005-11-21 Daniel Jacobowitz <dan@codesourcery.com>
> Thiemo Seufer <ths@networkno.de>
>
> * elf32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
> R_MIPS_PC16.
> (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
> (bfd_elf32_bfd_reloc_type_lookup): Don't handle
> BFD_RELOC_16_PCREL_S2.
> * elf64-mips.c (mips_elf64_howto_table_rel): Use rightshift 2 for
> R_MIPS_PC16.
> (mips_elf64_howto_table_rela): Likewise.
> (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
> (bfd_elf64_bfd_reloc_type_lookup): Don't handle
> BFD_RELOC_16_PCREL_S2.
> * elfn32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
> R_MIPS_PC16.
> (elf_mips_howto_table_rela): Likewise.
> (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
> (bfd_elf32_bfd_reloc_type_lookup): Don't handle
> BFD_RELOC_16_PCREL_S2.
> * elfxx-mips.c: Formatting fixes.
> (mips_elf_calculate_relocation): Handle R_MIPS_GNU_REL16_S2
> and R_MIPS_PC16 identically.
>
> 2005-11-21 Daniel Jacobowitz <dan@codesourcery.com>
> Thiemo Seufer <ths@networkno.de>
>
> * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL_S2.
> (macro_build): Complain for invalid branch displacements.
> (mips_validate_fix): Delete.
> (md_apply_fix): Re-add pcrel support for branches. Use consistent
> text for misaligned branch targets.
> (tc_gen_reloc: Re-add pcrel support for branches. Handle strange
> BFD pcrel processing. Remove error for unresolved branches.
> * config/tc-mips.h (TC_VALIDATE_FIX, mips_validate_fix): Delete.
>
> 2005-11-21 Daniel Jacobowitz <dan@codesourcery.com>
> Thiemo Seufer <ths@networkno.de>
>
> * gas/mips/bge.d, gas/mips/bge.s, gas/mips/bgeu.d, gas/mips/bgeu.s,
> gas/mips/blt.d, gas/mips/blt.s, gas/mips/bltu.d,
> gas/mips/bltu.s: Reactivate external branch tests.
> * gas/mips/branch-misc-2.d, gas/mips/branch-misc-2pic.d,
> gas/mips/branch-misc-2-64.d, gas/mips/branch-misc-2pic-64.d: New
> tests.
> * gas/mips/branch-misc-2.l, gas/mips/branch-misc-2pic.l,
> gas/testsuite/gas/mips/branch-misc-2pic.s: Remove.
> * gas/mips/mips.exp: Adjust branch-misc-2 tests. Add 64-bit
> variants.
Ok.
Thiemo