* elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.
authorIan Lance Taylor <ian@airs.com>
Tue, 11 Feb 1997 20:30:12 +0000 (20:30 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 11 Feb 1997 20:30:12 +0000 (20:30 +0000)
(elf_mips16_gprel_howto): New static variable.
(mips16_gprel_reloc): New static function.
(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL.
(mips_info_to_howto_rel): Handle R_MIPS16_GPREL.
(mips_elf_relocate_section): Handle R_MIPS16_GPREL.
* reloc.c (BFD_RELOC_MIPS16_GPREL): Define.
* bfd-in2.h, libbfd.h: Rebuild.

bfd/ChangeLog
bfd/bfd-in2.h
bfd/libbfd.h
bfd/reloc.c

index d9fe80d8f3645da92d93a0d7f1a8d47dd7754522..e3f94ca82c778a244cd5829226a15f389836ce5e 100644 (file)
@@ -1,3 +1,14 @@
+Tue Feb 11 15:27:32 1997  Ian Lance Taylor  <ian@cygnus.com>
+
+       * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.
+       (elf_mips16_gprel_howto): New static variable.
+       (mips16_gprel_reloc): New static function.
+       (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL.
+       (mips_info_to_howto_rel): Handle R_MIPS16_GPREL.
+       (mips_elf_relocate_section): Handle R_MIPS16_GPREL.
+       * reloc.c (BFD_RELOC_MIPS16_GPREL): Define.
+       * bfd-in2.h, libbfd.h: Rebuild.
+
 start-sanitize-m32r
 Mon Feb 10 23:25:00 1997  Doug Evans  <dje@seba.ricochet.net>
 
index a092ba8e3c78e61fec750dc6ec3bcbe3a8e49e25..a14a1700855bedb77330ba6f650ed3ce9735f654 100644 (file)
@@ -1681,6 +1681,9 @@ simple reloc otherwise. */
 /* The MIPS16 jump instruction. */
   BFD_RELOC_MIPS16_JMP,
 
+/* MIPS16 GP relative reloc. */
+  BFD_RELOC_MIPS16_GPREL,
+
 /* High 16 bits of 32-bit value; simple reloc. */
   BFD_RELOC_HI16,
 
index 2ba10f7cde9cfd58ed55c4273e1735a75dfb63e6..a373d725c2ea43a58d454ee27021fe28033dfed3 100644 (file)
@@ -638,6 +638,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
   "BFD_RELOC_ALPHA_LINKAGE",
   "BFD_RELOC_MIPS_JMP",
   "BFD_RELOC_MIPS16_JMP",
+  "BFD_RELOC_MIPS16_GPREL",
   "BFD_RELOC_HI16",
   "BFD_RELOC_HI16_S",
   "BFD_RELOC_LO16",
index 3cf9d7349b1147cb958f178ae0257d116c1840b3..81571b30503afa35d0eb915350e9f9a6f02cd130 100644 (file)
@@ -1961,6 +1961,11 @@ ENUM
 ENUMDOC
   The MIPS16 jump instruction.
 
+ENUM
+  BFD_RELOC_MIPS16_GPREL
+ENUMDOC
+  MIPS16 GP relative reloc.
+
 ENUM
   BFD_RELOC_HI16
 ENUMDOC
This page took 0.046176 seconds and 4 git commands to generate.