This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[5/20] MIPS GOT: Simplify .got size calculation
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 11 Feb 2013 17:39:12 +0000
- Subject: [5/20] MIPS GOT: Simplify .got size calculation
- References: <87fw1222fy.fsf@talisman.default>
A minor simplification of the .got size calculation in mips_elf_multi_got.
Richard
bfd/
* elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
Index: bfd/elfxx-mips.c
===================================================================
--- bfd/elfxx-mips.c 2013-02-11 14:06:32.336157676 +0000
+++ bfd/elfxx-mips.c 2013-02-11 14:06:32.881161889 +0000
@@ -4705,9 +4705,7 @@ mips_elf_multi_got (bfd *abfd, struct bf
}
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);