* elfxx-mips.c (mips_elf_create_got_section): Initialize global_gotno.
[platform/upstream/binutils.git] / bfd / elfxx-mips.c
index 2bff5a0..6a6787f 100644 (file)
@@ -2867,6 +2867,7 @@ mips_elf_create_got_section (abfd, info, maybe_exclude)
   if (g == NULL)
     return FALSE;
   g->global_gotsym = NULL;
+  g->global_gotno = 0;
   g->local_gotno = MIPS_RESERVED_GOTNO;
   g->assigned_gotno = MIPS_RESERVED_GOTNO;
   g->bfd2got = NULL;