This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[5/20] MIPS GOT: Simplify .got size calculation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]