[binutils-gdb] x86: Initialize def_protected

H.J.Lu hjl@sourceware.org
Sun Aug 27 14:25:00 GMT 2017


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

commit 596dc58f33e20bd2784459dc0931e92922465444
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Aug 27 07:23:40 2017 -0700

    x86: Initialize def_protected
    
    	* elf32-i386.c (elf_i386_link_hash_newfunc): Initialize
    	def_protected.
    	* elf64-x86-64.c (elf_x86_64_link_hash_newfunc): Likewise.

Diff:
---
 bfd/ChangeLog      | 6 ++++++
 bfd/elf32-i386.c   | 1 +
 bfd/elf64-x86-64.c | 1 +
 3 files changed, 8 insertions(+)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8f84db8..063253f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2017-08-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf32-i386.c (elf_i386_link_hash_newfunc): Initialize
+	def_protected.
+	* elf64-x86-64.c (elf_x86_64_link_hash_newfunc): Likewise.
+
 2017-08-26  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/21997
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 69b41a5..999cd48 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -1163,6 +1163,7 @@ elf_i386_link_hash_newfunc (struct bfd_hash_entry *entry,
       eh->has_non_got_reloc = 0;
       eh->no_finish_dynamic_symbol = 0;
       eh->tls_get_addr = 0;
+      eh->def_protected = 0;
       eh->func_pointer_refcount = 0;
       eh->plt_got.offset = (bfd_vma) -1;
       eh->tlsdesc_got = (bfd_vma) -1;
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 6e4c067..c9c6dba 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -1277,6 +1277,7 @@ elf_x86_64_link_hash_newfunc (struct bfd_hash_entry *entry,
       eh->has_non_got_reloc = 0;
       eh->no_finish_dynamic_symbol = 0;
       eh->tls_get_addr = 0;
+      eh->def_protected = 0;
       eh->func_pointer_refcount = 0;
       eh->plt_second.offset = (bfd_vma) -1;
       eh->plt_got.offset = (bfd_vma) -1;



More information about the Binutils-cvs mailing list