aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-mips.c
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2009-08-05 21:17:51 +0000
committerChao-ying Fu <fu@mips.com>2009-08-05 21:17:51 +0000
commitcd8d5a82a25684b60494b5ac21e7807b985e1ca4 (patch)
tree810d7a3958d1e0c1b9173e6a09d4bac60d14e143 /bfd/elf32-mips.c
parentef15dade898122c47e0f7dc0f48c1399c444afdd (diff)
downloadgdb-cd8d5a82a25684b60494b5ac21e7807b985e1ca4.zip
gdb-cd8d5a82a25684b60494b5ac21e7807b985e1ca4.tar.gz
gdb-cd8d5a82a25684b60494b5ac21e7807b985e1ca4.tar.bz2
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.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r--bfd/elf32-mips.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index c928586..ba3ee91 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -1261,6 +1261,7 @@ static const struct elf_reloc_map mips_reloc_map[] =
{ BFD_RELOC_MIPS_GOT_PAGE, R_MIPS_GOT_PAGE },
{ BFD_RELOC_MIPS_GOT_OFST, R_MIPS_GOT_OFST },
{ BFD_RELOC_MIPS_GOT_DISP, R_MIPS_GOT_DISP },
+ { BFD_RELOC_MIPS_JALR, R_MIPS_JALR },
{ BFD_RELOC_MIPS_TLS_DTPMOD32, R_MIPS_TLS_DTPMOD32 },
{ BFD_RELOC_MIPS_TLS_DTPREL32, R_MIPS_TLS_DTPREL32 },
{ BFD_RELOC_MIPS_TLS_DTPMOD64, R_MIPS_TLS_DTPMOD64 },