bfd/
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 11 Feb 2013 17:40:51 +0000 (17:40 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Mon, 11 Feb 2013 17:40:51 +0000 (17:40 +0000)
* elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
gotidx to -1.

bfd/ChangeLog
bfd/elfxx-mips.c

index 51232de71d6e52da34b8b5b208b366c36b2ea363..326207a3e2a782072b9fb8831e4bfada37acca69 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
+       gotidx to -1.
+
 2013-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
index 07546babce4083621844020a4fbbe143436bf89f..3ed4596baa6078aef9634f36fed10d6d3d883e8c 100644 (file)
@@ -3777,9 +3777,9 @@ mips_elf_record_local_got_symbol (bfd *abfd, long symndx, bfd_vma addend,
       return TRUE;
     }
 
+  entry.gotidx = -1;
   if (tls_flag != 0)
     {
-      entry.gotidx = -1;
       entry.tls_type = tls_flag;
       if (tls_flag == GOT_TLS_IE)
        g->tls_gotno += 1;
@@ -3793,7 +3793,7 @@ mips_elf_record_local_got_symbol (bfd *abfd, long symndx, bfd_vma addend,
     }
   else
     {
-      entry.gotidx = g->local_gotno++;
+      g->local_gotno += 1;
       entry.tls_type = 0;
     }