Remove is_vxworks from _bfd_sparc_elf_link_hash_table
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Jun 2020 00:40:47 +0000 (17:40 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Jun 2020 00:42:31 +0000 (17:42 -0700)
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.

bfd/ChangeLog
bfd/elfxx-sparc.c
bfd/elfxx-sparc.h

index 0fb6637a762219726c85f938ae34a9316a6a64fc..12123edc3e2e07ea0501861a26cfe2d0c92056af 100644 (file)
@@ -1,3 +1,9 @@
+2020-06-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * 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  <hongjiu.lu@intel.com>
 
        * elf-bfd.h (elf_target_os): New.
index eca44c9b5f94256909360979f9d409966069cf4b..4dcdd1793ebc228a461a188abf6bb5224cdc38ed 100644 (file)
@@ -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;
     }
index 45e5542a251b5a68a22724e43776d185629286a7..4082245861962cdb8483a3d5a41d29ecaba6292c 100644 (file)
@@ -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;
 
This page took 0.027164 seconds and 4 git commands to generate.