* elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
This commit is contained in:
Richard Sandiford 2013-02-11 17:38:53 +00:00
parent d222d21028
commit 59b089943c
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,7 @@
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...

View 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);