diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1bbeaea2a1..b3fef1a56d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -13,6 +13,7 @@ Tue Feb 13 14:35:15 1996 Ian Lance Taylor * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define. (BFD_RELOC_MIPS_GOT_LO16): Define. + (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define. * bfd-in2.h, libbfd.h: Rebuild. * elf32-mips.c (mips_reloc_map): Map new relocs. diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index c19551aa22..c5ea2153ed 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1602,6 +1602,8 @@ to compensate for the borrow when the low bits are added. */ #define BFD_RELOC_MIPS_GPREL32 BFD_RELOC_GPREL32 BFD_RELOC_MIPS_GOT_HI16, BFD_RELOC_MIPS_GOT_LO16, + BFD_RELOC_MIPS_CALL_HI16, + BFD_RELOC_MIPS_CALL_LO16, /* i386/elf relocations */ BFD_RELOC_386_GOT32, diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index e9bdba3cc4..20d159fa7c 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -1252,7 +1252,9 @@ static CONST struct elf_reloc_map mips_reloc_map[] = { BFD_RELOC_MIPS_CALL16, R_MIPS_CALL16 }, { BFD_RELOC_MIPS_GPREL32, R_MIPS_GPREL32 }, { BFD_RELOC_MIPS_GOT_HI16, R_MIPS_GOT_HI16 }, - { BFD_RELOC_MIPS_GOT_LO16, R_MIPS_GOT_LO16 } + { BFD_RELOC_MIPS_GOT_LO16, R_MIPS_GOT_LO16 }, + { BFD_RELOC_MIPS_CALL_HI16, R_MIPS_CALL_HI16 }, + { BFD_RELOC_MIPS_CALL_LO16, R_MIPS_CALL_LO16 } }; /* Given a BFD reloc type, return a howto structure. */ diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 6f18e90b89..296a8b778a 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -625,6 +625,8 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", "BFD_RELOC_MIPS_CALL16", "BFD_RELOC_MIPS_GOT_HI16", "BFD_RELOC_MIPS_GOT_LO16", + "BFD_RELOC_MIPS_CALL_HI16", + "BFD_RELOC_MIPS_CALL_LO16", "BFD_RELOC_386_GOT32", "BFD_RELOC_386_PLT32", "BFD_RELOC_386_COPY",