PR binutils/15417

* elflink.c (elf_link_add_object_symbols): Initialise 'idx' to
	zero.
This commit is contained in:
Nick Clifton 2013-04-30 12:13:09 +00:00
parent f1d02dd44d
commit ed54588daf
2 changed files with 7 additions and 1 deletions

View 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

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