aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-06-06 17:40:47 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-06-06 17:42:31 -0700
commitbcab203d31b2dd7e0b35abda34c42c278217bcf6 (patch)
treeca786ce9d44ff12da97d75cff86d883ce84d198c /bfd
parent20955c7cb8aebd8d900441c6ff87df2123e38f54 (diff)
downloadgdb-bcab203d31b2dd7e0b35abda34c42c278217bcf6.zip
gdb-bcab203d31b2dd7e0b35abda34c42c278217bcf6.tar.gz
gdb-bcab203d31b2dd7e0b35abda34c42c278217bcf6.tar.bz2
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elfxx-sparc.c2
-rw-r--r--bfd/elfxx-sparc.h3
3 files changed, 7 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0fb6637..12123ed 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
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.
(elf_link_hash_table): Add target_os.
(elf_backend_data): Add target_os.
diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c
index eca44c9..4dcdd17 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 45e5542..4082245 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;