PR binutils/15417
authorNick Clifton <nickc@redhat.com>
Tue, 30 Apr 2013 12:13:09 +0000 (12:13 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 30 Apr 2013 12:13:09 +0000 (12:13 +0000)
* elflink.c (elf_link_add_object_symbols): Initialise 'idx' to
zero.

bfd/ChangeLog
bfd/elflink.c

index 49e2e16d08e92de12c1a2756cac4ae4023347dc7..f0f538f4a8320dd7f76303b3f5376e11c4c9786c 100644 (file)
@@ -1,3 +1,9 @@
+2013-04-30  Olaf Flebbe  <o.flebbe@science-computing.de>
+
+       PR binutils/15417
+       * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to
+       zero.
+
 2013-04-30  Alan Modra  <amodra@gmail.com>
 
        * elflink.c (bfd_elf_record_link_assignment): Dont make
index 363abed0a260845e65d967bdb06e2907960500b9..7cfc37957b5e8cfe813423edd82f7de7a803efe4 100644 (file)
@@ -4665,7 +4665,7 @@ error_free_dyn:
          struct elf_link_hash_entry *hlook;
          asection *slook;
          bfd_vma vlook;
-         size_t i, j, idx;
+         size_t i, j, idx = 0;
 
          hlook = weaks;
          weaks = hlook->u.weakdef;