From: Ian Lance Taylor Date: Tue, 11 Feb 1997 20:30:12 +0000 (+0000) Subject: * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4183ba5c975bcaed9473184a0830d73ebd84487;p=binutils-gdb.git * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d9fe80d8f36..e3f94ca82c7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,14 @@ +Tue Feb 11 15:27:32 1997 Ian Lance Taylor + + * 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 diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index a092ba8e3c7..a14a1700855 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -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, diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 2ba10f7cde9..a373d725c2e 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -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", diff --git a/bfd/reloc.c b/bfd/reloc.c index 3cf9d7349b1..81571b30503 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -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