OSDN Git Service

2009-08-05 Chao-ying Fu <fu@mips.com>
authorchaoyingfu <chaoyingfu>
Wed, 5 Aug 2009 21:17:51 +0000 (21:17 +0000)
committerchaoyingfu <chaoyingfu>
Wed, 5 Aug 2009 21:17:51 +0000 (21:17 +0000)
commit8c634e13c3d5cf271e2566da5bd70ba1cf90dfd4
tree5364471ce95283d3fa6db83831aaab169303db2c
parent651cb6cc32e1635fe5a56162e9f11c6638208b08
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