aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-x86.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-09-02 07:23:46 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-09-02 07:24:42 -0700
commitfe53b4a4c47df9c0bb2fa7f0de5a241f21cf352c (patch)
tree13bc3da154360da074c04ee5407516b55782ec7c /bfd/elfxx-x86.c
parent9ff114ca5d2c2753f1ac110f8586d0040c27a7a3 (diff)
downloadfsf-binutils-gdb-fe53b4a4c47df9c0bb2fa7f0de5a241f21cf352c.zip
fsf-binutils-gdb-fe53b4a4c47df9c0bb2fa7f0de5a241f21cf352c.tar.gz
fsf-binutils-gdb-fe53b4a4c47df9c0bb2fa7f0de5a241f21cf352c.tar.bz2
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.
Diffstat (limited to 'bfd/elfxx-x86.c')
-rw-r--r--bfd/elfxx-x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c
index 6b7c119..b3d241c 100644
--- a/bfd/elfxx-x86.c
+++ b/bfd/elfxx-x86.c
@@ -310,6 +310,7 @@ _bfd_x86_elf_link_hash_table_create (bfd *abfd)
ret->tls_get_addr = "___tls_get_addr";
}
}
+ ret->target_id = bed->target_id;
ret->loc_hash_table = htab_try_create (1024,
_bfd_x86_elf_local_htab_hash,