aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-08-11 13:55:38 +0000
committerThiemo Seufer <ths@networkno.de>2006-08-11 13:55:38 +0000
commit54938e2a648765ca4e9d20201611b7d077f89349 (patch)
tree1355410851d7d1874a090947988bab683789d2ef /bfd/elfxx-mips.c
parent9fa66fd71197e7dceee8fa9f5594055461fa1a4e (diff)
downloadgdb-54938e2a648765ca4e9d20201611b7d077f89349.zip
gdb-54938e2a648765ca4e9d20201611b7d077f89349.tar.gz
gdb-54938e2a648765ca4e9d20201611b7d077f89349.tar.bz2
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Set
sh_entsize only when sgot was already initialized.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 5239938..726c458 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)