OSDN Git Service

2010-01-13 Chao-ying Fu <fu@mips.com>
authorchaoyingfu <chaoyingfu>
Thu, 14 Jan 2010 07:30:53 +0000 (07:30 +0000)
committerchaoyingfu <chaoyingfu>
Thu, 14 Jan 2010 07:30:53 +0000 (07:30 +0000)
commit2f7a3031f53084543d41932cf455dd013c0bc629
treeeffa6be13d0140c962f6f1a5300d83b8e5c28069
parente51397738284f459d5f4cbd2d99a1b0c939c867f
2010-01-13  Chao-ying Fu  <fu@mips.com>

* elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
It is true for all CPUs.
(jal_reloc_p): New function.
(mips_elf_calculate_relocation): Rename require_jalxp to
cross_mode_jump_p.
Update comment for CROSS_MODE_JUMP_P.
Set up cross_mode_jump_p based on the mode change.
(mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
Update comment for CROSS_MODE_JUMP_P.
Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
Use !cross_mode_jump_p to guard conversion.
Convert "jr t9" to "b", if possible.
(_bfd_mips_elf_relocate_section): Rename require_jalx to
cross_mode_jump_p.
Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
Pass cross_mode_jump_p to call mips_elf_perform_relocation.
bfd/ChangeLog
bfd/elfxx-mips.c