Add reloc.c entries MIPS_CALL_HI16/MIPS_CALL_LO16.
authorIan Lance Taylor <ian@airs.com>
Wed, 14 Feb 1996 01:36:01 +0000 (01:36 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 14 Feb 1996 01:36:01 +0000 (01:36 +0000)
bfd/ChangeLog
bfd/bfd-in2.h
bfd/elf32-mips.c
bfd/libbfd.h

index 1bbeaea..b3fef1a 100644 (file)
@@ -13,6 +13,7 @@ Tue Feb 13 14:35:15 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * 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.
 
index c19551a..c5ea215 100644 (file)
@@ -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,
index e9bdba3..20d159f 100644 (file)
@@ -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.  */
index 6f18e90..296a8b7 100644 (file)
@@ -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",