[5/20] MIPS GOT: Simplify .got size calculation
Richard Sandiford
rdsandiford@googlemail.com
Mon Feb 11 17:39:00 GMT 2013
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);
More information about the Binutils
mailing list