aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiaming Wei <jmwei@hxgpt.com>2016-08-09 16:18:42 +0100
committerNick Clifton <nickc@redhat.com>2016-08-09 16:18:42 +0100
commit68994ca2c06b55c46e53d670bc10869e7f1bc5fe (patch)
tree9e6fcbe7daeb92152ce138488d71e6e7aabad911 /bfd/elf64-alpha.c
parentFix PR gdb/20295: GDB segfaults printing bitfield member of optimized out value (diff)
downloadbinutils-gdb-68994ca2c06b55c46e53d670bc10869e7f1bc5fe.tar.gz
binutils-gdb-68994ca2c06b55c46e53d670bc10869e7f1bc5fe.tar.bz2
binutils-gdb-68994ca2c06b55c46e53d670bc10869e7f1bc5fe.zip
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.
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r--bfd/elf64-alpha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 681f792c713..5a9c3c771a9 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -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;