This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Correct the calculation of the use_counts of merged .got entries.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=68994ca2c06b55c46e53d670bc10869e7f1bc5fe

commit 68994ca2c06b55c46e53d670bc10869e7f1bc5fe
Author: Jiaming Wei <jmwei@hxgpt.com>
Date:   Tue Aug 9 16:18:42 2016 +0100

    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.

Diff:
---
 bfd/ChangeLog     | 5 +++++
 bfd/elf64-alpha.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0b19c61..3722f31 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 681f792..5a9c3c7 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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]