summaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2011-07-28 17:39:19 +0000
committerRoland McGrath <roland@gnu.org>2011-07-28 17:39:19 +0000
commitda4f3e133e09c41c5ec6942fb9e1ba6114fc669a (patch)
tree3c9986ee38dc53730a3ae8e8d76281a8d9ac560f /bfd/elfxx-target.h
parentdd62be4fd3d285d55d12299a2d28b09fd77b89f7 (diff)
downloadbinutils-redhat-da4f3e133e09c41c5ec6942fb9e1ba6114fc669a.tar.gz
Clean up elf32-i386-vxworks:
* elf32-i386.c (struct elf_i386_backend_data): New type. (get_elf_i386_backend_data): New macro. (elf_i386_arch_bed): New variable. (elf_backend_arch_data): New macro. (struct elf_i386_link_hash_table): Remove plt0_pad_byte and is_vxworks. (elf_i386_link_hash_table_create): Don't initialize them. (elf_i386_create_dynamic_sections): Find is_vxworks flags in elf_i386_backend_data, not elf_i386_link_hash_table. (elf_i386_adjust_dynamic_symbol): Likewise. (elf_i386_allocate_dynrelocs): Likewise. (elf_i386_readonly_dynrelocs): Likewise. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Likewise. (elf_i386_finish_dynamic_symbol): Likewise. (elf_i386_finish_dynamic_sections): Likewise. Same for plt0_pad_byte. (elf_i386_vxworks_link_hash_table_create): Function removed. (elf_i386_vxworks_arch_bed): New variable. (elf_backend_arch_data): New macro in elf32-i386-vxworks stanza. * elf-bfd.h (elf_backend_data): New member arch_backend_data. * elfxx-target.h (elf_backend_arch_data): New macro. (elfNN_bed): Use it as initializer for the new member.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index b51ac9fde6..96ecce308d 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -310,6 +310,10 @@
#define elf_info_to_howto_rel 0
#endif
+#ifndef elf_backend_arch_data
+#define elf_backend_arch_data NULL
+#endif
+
#ifndef ELF_TARGET_ID
#define ELF_TARGET_ID GENERIC_ELF_DATA
#endif
@@ -507,7 +511,7 @@
#define elf_backend_hide_symbol _bfd_elf_link_hash_hide_symbol
#endif
#ifndef elf_backend_fixup_symbol
-#define elf_backend_fixup_symbol NULL
+#define elf_backend_fixup_symbol NULL
#endif
#ifndef elf_backend_merge_symbol_attribute
#define elf_backend_merge_symbol_attribute NULL
@@ -668,6 +672,7 @@ static struct elf_backend_data elfNN_bed =
ELF_MINPAGESIZE, /* minpagesize */
ELF_COMMONPAGESIZE, /* commonpagesize */
ELF_DYNAMIC_SEC_FLAGS, /* dynamic_sec_flags */
+ elf_backend_arch_data,
elf_info_to_howto,
elf_info_to_howto_rel,
elf_backend_sym_is_global,