diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-06-04 09:56:25 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-06-04 09:56:25 -0700 |
commit | add5f777decf9257f46c98dc2aacedb52a3d65e6 (patch) | |
tree | 620e7fe6c7154e862559c5609f9d432f47a38e83 /bfd/elfxx-x86.c | |
parent | 1c07a73f66382eb0c95132aaf9690621fdce1e78 (diff) | |
download | gdb-add5f777decf9257f46c98dc2aacedb52a3d65e6.zip gdb-add5f777decf9257f46c98dc2aacedb52a3d65e6.tar.gz gdb-add5f777decf9257f46c98dc2aacedb52a3d65e6.tar.bz2 |
x86: Remove target_id from elf_x86_link_hash_table
Since target_id in elf_x86_link_hash_table is the same as hash_table_id
in elf_link_hash_table, we can use elf.hash_table_id instead of target_id.
* elfxx-x86.h (elf_x86_link_hash_table): Remove target_id.
(is_x86_elf): Check elf.hash_table_id instead of target_id.
* elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Updated.
Diffstat (limited to 'bfd/elfxx-x86.c')
-rw-r--r-- | bfd/elfxx-x86.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c index 035b5c5..d796292 100644 --- a/bfd/elfxx-x86.c +++ b/bfd/elfxx-x86.c @@ -762,7 +762,6 @@ _bfd_x86_elf_link_hash_table_create (bfd *abfd) ret->tls_get_addr = "___tls_get_addr"; } } - ret->target_id = bed->target_id; ret->target_os = get_elf_x86_backend_data (abfd)->target_os; ret->loc_hash_table = htab_try_create (1024, |