From cd8d5a82a25684b60494b5ac21e7807b985e1ca4 Mon Sep 17 00:00:00 2001 From: Chao-ying Fu Date: Wed, 5 Aug 2009 21:17:51 +0000 Subject: 2009-08-05 Chao-ying Fu * 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/elf32-mips.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bfd/elf32-mips.c') 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 }, -- cgit v1.1