From: Nick Clifton Date: Tue, 30 Apr 2013 12:13:09 +0000 (+0000) Subject: PR binutils/15417 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed54588daf47156f054f0e8c5ef894c3c99e6797;p=binutils-gdb.git PR binutils/15417 * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to zero. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 49e2e16d08e..f0f538f4a83 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2013-04-30 Olaf Flebbe + + PR binutils/15417 + * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to + zero. + 2013-04-30 Alan Modra * elflink.c (bfd_elf_record_link_assignment): Dont make diff --git a/bfd/elflink.c b/bfd/elflink.c index 363abed0a26..7cfc37957b5 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -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;