x86: Add is_x86_elf
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 2 Sep 2017 14:23:46 +0000 (07:23 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 2 Sep 2017 14:24:42 +0000 (07:24 -0700)
commitfe53b4a4c47df9c0bb2fa7f0de5a241f21cf352c
tree13bc3da154360da074c04ee5407516b55782ec7c
parent9ff114ca5d2c2753f1ac110f8586d0040c27a7a3
x86: Add is_x86_elf

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

* elf32-i386.c (is_i386_elf): Removed.
(elf_i386_check_relocs): Replace is_i386_elf with is_x86_elf.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (is_x86_64_elf): Removed.
(elf_x86_64_check_relocs): Replace is_x86_64_elf with
is_x86_elf.
(elf_x86_64_size_dynamic_sections): Likewise.
(elf_x86_64_relocate_section): Likewise.
* elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize
target_id.
* elfxx-x86.h (elf_x86_link_hash_table): Add target_id.
(is_x86_elf): New.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
bfd/elfxx-x86.c
bfd/elfxx-x86.h