This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Avoid BFD64 code in elfxx-sparc.c
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org, richard at codesourcery dot com
- Date: Wed, 28 Mar 2007 22:13:39 +0930
- Subject: Re: Avoid BFD64 code in elfxx-sparc.c
- References: <87mz1x7ofn.fsf@firetop.home>
On Wed, Mar 28, 2007 at 09:38:36AM +0100, Richard Sandiford wrote:
> bfd/
> * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
> * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
> Merge into...
> (sparc_elf_append_rela): ...this new function.
> (SPARC_ELF_APPEND_RELA): Delete.
> (_bfd_sparc_elf_link_hash_table_create): Don't initialize
> the deleted append_rela field.
> (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
> instead of SPARC_ELF_APPEND_RELA.
> (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the
> elf_size_info structure to find the size of a RELA entry and
> the associated swap-out function.
> (sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
> (sparc_finish_dyn): ...this new function.
> (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
Looks good. Please install.
--
Alan Modra
IBM OzLabs - Linux Technology Centre