x86: Add elf_x86_compute_jump_table_size
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 2 Sep 2017 14:16:33 +0000 (07:16 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 2 Sep 2017 14:18:55 +0000 (07:18 -0700)
commit9ff114ca5d2c2753f1ac110f8586d0040c27a7a3
treef5d17bbdf1bc70f396096e2bdc826dac90ad0b4e
parent503294e755498eb6545ca72b338c5037facab7f7
x86: Add elf_x86_compute_jump_table_size

Share elf_x86_compute_jump_table_size in elf32-i386.c and
elf64-x86-64.c.

* elf32-i386.c (elf_i386_compute_jump_table_size): Removed.
(elf_i386_allocate_dynrelocs): Replace
elf_i386_compute_jump_table_size with
elf_x86_compute_jump_table_size.
(elf_i386_size_dynamic_sections): Likewise.
* elf64-x86-64.c (elf_x86_64_compute_jump_table_size): Removed.
(elf_x86_64_allocate_dynrelocs): Replace
elf_x86_64_compute_jump_table_size with
elf_x86_compute_jump_table_size.
(elf_x86_64_size_dynamic_sections): Likewise.
* elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize
got_entry_size.
* elfxx-x86.h (elf_x86_link_hash_table): Add got_entry_size.
(elf_x86_compute_jump_table_size): New.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
bfd/elfxx-x86.c
bfd/elfxx-x86.h
This page took 0.024611 seconds and 4 git commands to generate.