x86: Initialize def_protected
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 27 Aug 2017 14:23:40 +0000 (07:23 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 27 Aug 2017 14:23:40 +0000 (07:23 -0700)
* elf32-i386.c (elf_i386_link_hash_newfunc): Initialize
def_protected.
* elf64-x86-64.c (elf_x86_64_link_hash_newfunc): Likewise.

bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c

index 8f84db80302c1484224d9011fa5c551b9c57d78f..063253f4a575eeed1ca90bbdedbc418f6cf53bac 100644 (file)
@@ -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
index 69b41a54f91614c6c34e4c7424d41649157f30d6..999cd48ee4a69b49cef2fd87b501aba66bd4f832 100644 (file)
@@ -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;
index 6e4c067732e7f3485c331eec40a08d59d79e7f0a..c9c6dba8c54797f2f29c6b668e3bf5ab5242c068 100644 (file)
@@ -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;