From c22bcc7c9f0c7b5168a4c0ca6145f49a7334750e Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Mon, 8 Feb 2010 20:18:02 +0000 Subject: bfd/ * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot, srelgot, splt, srelplt, and sgotplt members in favor of generic copies. * elfxx-sparc.c (create_got_section): Delete. (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic section creator does that work for us. Use ->elf.foo instead of ->foo where applicable. (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo where applicable. (allocate_dynrelocs): Likewise. (_bfd_sparc_elf_size_dynamic_sections): Likewise. (_bfd_sparc_elf_relocate_section): Likewise. (sparc_vxworks_build_plt_entry): Likewise. (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. (sparc_finish_dyn): Likewise. (sparc_vxworks_finish_exec_plt): Likewise. (sparc_vxworks_finish_shared_plt): Likewise. (_bfd_sparc_elf_finish_dynamic_sections): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_* macros for visibilty and locality checks. (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. (allocate_dynrelocs): Likewise. (_bfd_sparc_elf_relocate_section): Likewise. (_bfd_sparc_elf_finish_dynamic_symbol):Likewise. * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set but never used local var 'dynobj'. * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle nocopyreloc. --- bfd/elfxx-sparc.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'bfd/elfxx-sparc.h') diff --git a/bfd/elfxx-sparc.h b/bfd/elfxx-sparc.h index 6f24ecd24b..a20855a990 100644 --- a/bfd/elfxx-sparc.h +++ b/bfd/elfxx-sparc.h @@ -47,10 +47,6 @@ struct _bfd_sparc_elf_link_hash_table struct elf_link_hash_table elf; /* Short-cuts to get to dynamic linker sections. */ - asection *sgot; - asection *srelgot; - asection *splt; - asection *srelplt; asection *sdynbss; asection *srelbss; @@ -69,9 +65,6 @@ struct _bfd_sparc_elf_link_hash_table /* The (unloaded but important) .rela.plt.unloaded section, for VxWorks. */ asection *srelplt2; - /* .got.plt is only used on VxWorks. */ - asection *sgotplt; - void (*put_word) (bfd *, bfd_vma, void *); bfd_vma (*r_info) (Elf_Internal_Rela *, bfd_vma, bfd_vma); bfd_vma (*r_symndx) (bfd_vma); -- cgit v1.2.1