2009-08-05 Chao-ying Fu <fu@mips.com>
authorChao-ying Fu <fu@mips.com>
Wed, 5 Aug 2009 21:17:51 +0000 (21:17 +0000)
committerChao-ying Fu <fu@mips.com>
Wed, 5 Aug 2009 21:17:51 +0000 (21:17 +0000)
commitcd8d5a82a25684b60494b5ac21e7807b985e1ca4
tree810d7a3958d1e0c1b9173e6a09d4bac60d14e143
parentef15dade898122c47e0f7dc0f48c1399c444afdd
2009-08-05  Chao-ying Fu  <fu@mips.com>

* elf32-mips.c (mips_reloc_map): Add BFD_RELOC_MIPS_JALR.
* elfxx-mips.c (JAL_TO_BAL_P): New define to transform JAL to BAL
for CPUs.  It is true for RM9000.
(JALR_TO_BAL_P): New define to transform JALR to BAL.  It is true
for all CPUs.
(mips_elf_perform_relocation): Use JAL_TO_BAL_P and JALR_TO_BAL_P
to guard the transformation.
bfd/ChangeLog
bfd/elf32-mips.c
bfd/elfxx-mips.c