Correct the calculation of the use_counts of merged .got entries.

* elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Fix thinko
	adjusting the use_count of merged .got entries.
This commit is contained in:
Jiaming Wei 2016-08-09 16:18:42 +01:00 committed by Nick Clifton
parent e5ca03b41d
commit 68994ca2c0
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2016-08-09 Jiaming Wei <jmwei@hxgpt.com>
* elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Fix thinko
adjusting the use_count of merged .got entries.
2016-08-08 Nick Clifton <nickc@redhat.com>
* doc/chew.c (delete_string): Only free the string buffer if it is

View file

@ -2218,7 +2218,7 @@ elf64_alpha_copy_indirect_symbol (struct bfd_link_info *info,
&& gi->reloc_type == gs->reloc_type
&& gi->addend == gs->addend)
{
gi->use_count += gs->use_count;
gs->use_count += gi->use_count;
goto got_found;
}
gi->next = hs->got_entries;