OSDN Git Service

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)
commite502d6176196f846fb068c8cb7864a5e04a96e00
tree8bdc71289d1342651ace206267ae5b54571a745c
parentcb7ed0a3d6304aac5490ef95b7521dc9b6e1f7cf
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