* elf32-mips.c (mips_elf_swap_msym_in): New function.
authorMark Mitchell <mark@codesourcery.com>
Sun, 27 Jun 1999 11:05:15 +0000 (11:05 +0000)
committerMark Mitchell <mark@codesourcery.com>
Sun, 27 Jun 1999 11:05:15 +0000 (11:05 +0000)
commitc6142e5d05bb11f13b753c9045912effa27dd118
tree792bb2fb66b8d471c4cd1e4b3c6cddfb1e85e002
parent264d6861c783a455246f21648eda78c7a1924931
* elf32-mips.c (mips_elf_swap_msym_in): New function.
(mips_elf_swap_msym_out): New function.
(mips_elf_create_msym_section): Likewise.
(MIPS_ELF_MSYM_SECTION_NAME): New macro.
(_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
(_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
section not named .msym.
(_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
.msym directly.  Set appropriate attributes for the .msym
section.
(mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
(mips_elf_link_hash_newfunc): Clear it.
(mips_elf_create_dynamic_sections): Create the .msym section
on IRIX6.
(mips_elf_size_dynamic_sections):  Allocate space for the
.msym section.  Add a DT_MIPS_MSYM entry.
(mips_elf_finish_dynamic_symbol): Write out a .msym entry for
the symbol.
(mips_elf_finish_dynamic_sections): Assign a value for
DT_MIPS_MSYM.  Add .msym entries for the section symbols as well.
bfd/ChangeLog
bfd/elf32-mips.c