x86: Add sizeof_reloc to elf_x86_link_hash_table
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 2 Sep 2017 12:55:25 +0000 (05:55 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 2 Sep 2017 12:55:25 +0000 (05:55 -0700)
commit503294e755498eb6545ca72b338c5037facab7f7
tree44db44a6e4c36a032082c8704ea8d3c7b688428a
parent9a742a902f48369144cdbf5333392f128c74ab7b
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.
bfd/ChangeLog
bfd/elfxx-x86.c
bfd/elfxx-x86.h