aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-x86-64.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-08-27 07:23:40 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-27 07:23:40 -0700
commit596dc58f33e20bd2784459dc0931e92922465444 (patch)
tree5dd92e45dc6a40b6cbb911f9bdb610e4c3fce562 /bfd/elf64-x86-64.c
parenta5b4ee9451dc9ffb6aa29376fc03943c53c6da0d (diff)
downloadgdb-596dc58f33e20bd2784459dc0931e92922465444.zip
gdb-596dc58f33e20bd2784459dc0931e92922465444.tar.gz
gdb-596dc58f33e20bd2784459dc0931e92922465444.tar.bz2
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.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r--bfd/elf64-x86-64.c1
1 files changed, 1 insertions, 0 deletions
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;