]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 11 Feb 2013 17:23:03 +0000 (17:23 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Mon, 11 Feb 2013 17:23:03 +0000 (17:23 +0000)
* elfxx-mips.c (mips_elf_recreate_got): Remove free.
(mips_elf_resolve_final_got_entries): Remove bogus comment.

bfd/ChangeLog
bfd/elfxx-mips.c

index a3f621c93c30e5117317b004da3f41952b50d1b8..bb8114de60f34581506c31cc960f125524e21865 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * elfxx-mips.c (mips_elf_recreate_got): Remove free.
+       (mips_elf_resolve_final_got_entries): Remove bogus comment.
+
 2013-02-10  Alan Modra  <amodra@gmail.com>
 
        PR ld/15113
index 490f5e9bfcff1a5f43b62f08c0f5374d43b05cfa..2b0676380d30105b8d7398af78951f2399fb3b8f 100644 (file)
@@ -3982,8 +3982,6 @@ mips_elf_recreate_got (void **entryp, void *data)
     }
   if (*slot == NULL)
     *slot = entry;
-  else
-    free (entry);
   return 1;
 }
 
@@ -4007,8 +4005,6 @@ mips_elf_resolve_final_got_entries (struct mips_got_info *g)
       if (new_got == NULL)
        return FALSE;
 
-      /* Each entry in g->got_entries has either been copied to new_got
-        or freed.  Now delete the hash table itself.  */
       htab_delete (g->got_entries);
       g->got_entries = new_got;
     }