From: ths Date: Fri, 11 Aug 2006 13:55:38 +0000 (+0000) Subject: * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Set X-Git-Tag: drop_9x_support_start~1972 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6259b4f9c4dfa6d4811b72629f7540c025695206;p=pf3gnuchains%2Fpf3gnuchains4x.git * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Set sh_entsize only when sgot was already initialized. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f2b4ad4844..4c7c224a25 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-08-11 Thiemo Seufer + + * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Set + sh_entsize only when sgot was already initialized. + 2006-08-08 DJ Delorie * elf32-sh.c (sh_elf_relax_section): Allow for branches across diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 5239938822..726c45835c 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -8789,11 +8789,10 @@ _bfd_mips_elf_finish_dynamic_sections (bfd *output_bfd, MIPS_ELF_PUT_WORD (output_bfd, (bfd_vma) 0x80000000, sgot->contents + MIPS_ELF_GOT_SIZE (output_bfd)); } - } - if (sgot != NULL) - elf_section_data (sgot->output_section)->this_hdr.sh_entsize - = MIPS_ELF_GOT_SIZE (output_bfd); + elf_section_data (sgot->output_section)->this_hdr.sh_entsize + = MIPS_ELF_GOT_SIZE (output_bfd); + } /* Generate dynamic relocations for the non-primary gots. */ if (gg != NULL && gg->next)