This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Fix a linker segfault for PPC sdata
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Thu, 19 May 2005 18:25:25 +0930
- Subject: Re: Fix a linker segfault for PPC sdata
- References: <20050517212818.GA1882@nevyn.them.org>
On Tue, May 17, 2005 at 05:28:18PM -0400, Daniel Jacobowitz wrote:
> 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
>
> * bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
> has_sda_refs.
> (ppc_elf_copy_indirect_symbol): Copy has_sda_refs.
> (ppc_elf_check_relocs): Set has_sda_refs.
> (ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating
> copy relocations. Use has_sda_refs to place variables in .sbss.
> (ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in
> .sbss.
>
> 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
>
> * ld-powerpc/sdalib.s, ld-powerpc/sdadyn.s, ld-powerpc/sdadyn.d: New
> files.
> * ld-powerpc/powerpc.exp: Run the new test.
OK, thanks.
--
Alan Modra
IBM OzLabs - Linux Technology Centre