aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-x86.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-02-09 08:44:42 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-02-09 08:45:07 -0800
commit3b4c384407ebbdd9ed4ad5057080b3be038b8748 (patch)
tree8261b4f0b75305fe1aab3912ff5fb61dfd8195cc /bfd/elfxx-x86.h
parent9c3630e983df43e68006b526a92c2a9a2b64dfd9 (diff)
downloadgdb-3b4c384407ebbdd9ed4ad5057080b3be038b8748.zip
gdb-3b4c384407ebbdd9ed4ad5057080b3be038b8748.tar.gz
gdb-3b4c384407ebbdd9ed4ad5057080b3be038b8748.tar.bz2
x86: Add is_solaris to elf_x86_target_os
Add is_solaris to elf_x86_target_os since Solaris is quite different. * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle is_solaris. (i386_elf32_sol2_vec): Don't declare. (elf_i386_link_setup_gnu_properties): Also handle is_solaris. Don't set need_global_offset_table. (elf_i386_solaris_arch_bed): New. (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for Solaris. * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check target_os != is_nacl instead of target_os == is_normal. (x86_64_elf64_sol2_vec): Don't declare. (elf_x86_64_link_setup_gnu_properties): Check target_os != is_nacl instead of target_os == is_normal. Don't set need_global_offset_table. (elf_x86_64_solaris_arch_bed): New. (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for Solaris. * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep _GLOBAL_OFFSET_TABLE_ for Solaris. (_bfd_x86_elf_link_setup_gnu_properties): Don't copy need_global_offset_table. * elfxx-x86.h (elf_x86_target_os): Add is_solaris. (elf_x86_link_hash_table): Remove need_global_offset_table. (elf_x86_init_table): Likewise.
Diffstat (limited to 'bfd/elfxx-x86.h')
-rw-r--r--bfd/elfxx-x86.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h
index 4606bf1..a7bd49e 100644
--- a/bfd/elfxx-x86.h
+++ b/bfd/elfxx-x86.h
@@ -401,6 +401,7 @@ struct elf_x86_plt_layout
enum elf_x86_target_os
{
is_normal,
+ is_solaris,
is_vxworks,
is_nacl
};
@@ -481,9 +482,6 @@ struct elf_x86_link_hash_table
/* TRUE if GOT is referenced. */
unsigned int got_referenced : 1;
- /* TRUE if _GLOBAL_OFFSET_TABLE_ is needed. */
- unsigned int need_global_offset_table : 1;
-
bfd_vma (*r_info) (bfd_vma, bfd_vma);
bfd_vma (*r_sym) (bfd_vma);
bfd_boolean (*is_reloc_section) (const char *);
@@ -528,9 +526,6 @@ struct elf_x86_init_table
bfd_byte plt0_pad_byte;
- /* TRUE if _GLOBAL_OFFSET_TABLE_ is needed. */
- unsigned int need_global_offset_table : 1;
-
bfd_vma (*r_info) (bfd_vma, bfd_vma);
bfd_vma (*r_sym) (bfd_vma);
};