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)
commite8ee44fc01db1124ac33a58ce4dfb523febb2d69
tree4f20915394c01d3998dcb96a54acf295e07a87a8
parent1fb454070bceaab9d5a9a6315637a4ed1ee6e854
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