* reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
commitc83e99ce5092622a6ea223c67d5678aa685906e3
authorMark Mitchell <mark@codesourcery.com>
Wed, 2 Jun 1999 10:20:16 +0000 (2 10:20 +0000)
committerMark Mitchell <mark@codesourcery.com>
Wed, 2 Jun 1999 10:20:16 +0000 (2 10:20 +0000)
tree542beb3cd010333e3a868bedc0d6e49317bc96ad
parentc22b162d417ece8e6c1607a8ae6a0ddde105599d
* reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
(BFD_RELOC_MIPS_GOT_PAGE): Likewise.
(BFD_RELOC_MIPS_GOT_OFST): Likewise.
(BFD_RELOC_MIPS_GOT_DISP): Likewise.
* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.
* elf32-mips.c (mips_info_to_howto_rela): New function.
(USE_REL): Adjust for new conventions.
(MINUS_ONE): New macro.
(elf_mips_howto_table): Add R_MIPS_SUB.
(mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
and MIPS_GOT_DISP.
(mips_elf_final_write_processing): Set sh_link, not sh_info, for a
.MIPS.content section.
(_bfd_mips_elf_fake_sections): Treat all sections that begin
with .MIPS.content as .MIPS.content sections.  Set
SHF_MNIPS_NOSTRIP for such section.
(elf_info_to_howto): Define to mips_info_to_howto_rela.
* elf64-mips.c (mips_r):  Add entries for MIPS_SUB, MIPS_GOT_PAGE,
MIPS_GOT_OFST, and MIPS_GOT_DISP.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/elf32-mips.c
bfd/elf64-mips.c
bfd/libbfd.h
bfd/reloc.c