bfd/
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 11 Feb 2013 17:38:53 +0000 (17:38 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Mon, 11 Feb 2013 17:38:53 +0000 (17:38 +0000)
* elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.

bfd/ChangeLog
bfd/elfxx-mips.c

index 1b51b61..51232de 100644 (file)
@@ -1,5 +1,9 @@
 2013-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
 
+       * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
+
+2013-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
+
        * elfxx-mips.c (mips_got_info): Move global_gotsym to...
        (mips_elf_link_hash_table): ...here.  Update rest of file accordingly.
 
index 4a4e061..07546ba 100644 (file)
@@ -4705,9 +4705,7 @@ mips_elf_multi_got (bfd *abfd, struct bfd_link_info *info,
     }
   while (g);
 
-  got->size = (gg->next->local_gotno
-              + gg->next->global_gotno
-              + gg->next->tls_gotno) * MIPS_ELF_GOT_SIZE (abfd);
+  got->size = assign * MIPS_ELF_GOT_SIZE (abfd);
 
   needed_relocs = 0;
   set_got_offset_arg.value = MIPS_ELF_GOT_SIZE (abfd);