aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2013-02-11 17:38:53 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2013-02-11 17:38:53 +0000
commit59b089943c568c6245f8c87e06f57a4fccdcca58 (patch)
tree51fa7b60202a4ad389e4487a63ca7d0d33ca828f /bfd
parentd222d210283a5f08c3a0d347914011035f20d4be (diff)
downloadgdb-59b089943c568c6245f8c87e06f57a4fccdcca58.zip
gdb-59b089943c568c6245f8c87e06f57a4fccdcca58.tar.gz
gdb-59b089943c568c6245f8c87e06f57a4fccdcca58.tar.bz2
bfd/
* elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elfxx-mips.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1b51b61..51232de 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 4a4e061..07546ba 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -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);