aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-x86.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-09-02 05:55:25 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-09-02 05:55:25 -0700
commit503294e755498eb6545ca72b338c5037facab7f7 (patch)
tree44db44a6e4c36a032082c8704ea8d3c7b688428a /bfd/elfxx-x86.h
parent9a742a902f48369144cdbf5333392f128c74ab7b (diff)
downloadgdb-503294e755498eb6545ca72b338c5037facab7f7.zip
gdb-503294e755498eb6545ca72b338c5037facab7f7.tar.gz
gdb-503294e755498eb6545ca72b338c5037facab7f7.tar.bz2
x86: Add sizeof_reloc to elf_x86_link_hash_table
Initialize htab->sizeof_reloc once, instead of computing it every time. * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize sizeof_reloc. (_bfd_x86_elf_adjust_dynamic_symbol): Use sizeof_reloc. * elfxx-x86.h (elf_x86_link_hash_table): Add sizeof_reloc.
Diffstat (limited to 'bfd/elfxx-x86.h')
-rw-r--r--bfd/elfxx-x86.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h
index 86af21f..0c80ca4 100644
--- a/bfd/elfxx-x86.h
+++ b/bfd/elfxx-x86.h
@@ -313,6 +313,7 @@ struct elf_x86_link_hash_table
bfd_vma (*r_info) (bfd_vma, bfd_vma);
bfd_vma (*r_sym) (bfd_vma);
+ unsigned int sizeof_reloc;
unsigned int pointer_r_type;
int dynamic_interpreter_size;
const char *dynamic_interpreter;