From: H.J. Lu Date: Sun, 7 Jun 2020 00:40:47 +0000 (-0700) Subject: Remove is_vxworks from _bfd_sparc_elf_link_hash_table X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bcab203d31b2dd7e0b35abda34c42c278217bcf6;p=binutils-gdb.git Remove is_vxworks from _bfd_sparc_elf_link_hash_table Replace is_vxworks with elf.target_os == is_vxworks. * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Updated. * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove is_vxworks. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0fb6637a762..12123edc3e2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2020-06-06 H.J. Lu + + * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Updated. + * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove + is_vxworks. + 2020-06-06 H.J. Lu * elf-bfd.h (elf_target_os): New. diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c index eca44c9b5f9..4dcdd1793eb 100644 --- a/bfd/elfxx-sparc.c +++ b/bfd/elfxx-sparc.c @@ -2678,7 +2678,7 @@ _bfd_sparc_elf_size_dynamic_sections (bfd *output_bfd, eht->dynsymcount++; } } - if (htab->is_vxworks + if (htab->elf.target_os == is_vxworks && !elf_vxworks_add_dynamic_entries (output_bfd, info)) return FALSE; } diff --git a/bfd/elfxx-sparc.h b/bfd/elfxx-sparc.h index 45e5542a251..40822458619 100644 --- a/bfd/elfxx-sparc.h +++ b/bfd/elfxx-sparc.h @@ -62,9 +62,6 @@ struct _bfd_sparc_elf_link_hash_table htab_t loc_hash_table; void *loc_hash_memory; - /* True if the target system is VxWorks. */ - int is_vxworks; - /* The (unloaded but important) .rela.plt.unloaded section, for VxWorks. */ asection *srelplt2;