This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fix use of uninitialized data in elf32-ppc.c
- From: Alan Modra <amodra at gmail dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Sat, 29 Jan 2011 10:31:49 +1030
- Subject: Re: Fix use of uninitialized data in elf32-ppc.c
- References: <Pine.LNX.4.64.1101282324470.23098@digraph.polyomino.org.uk>
On Fri, Jan 28, 2011 at 11:25:26PM +0000, Joseph S. Myers wrote:
> This patch fixes nondeterministic behavior in the ppc32 linker arising
> from the has_sda_refs field in struct ppc_elf_link_hash_entry not
> being initialized.
>
> Tested with no regressions with cross to powerpc-linux-gnu. OK to
> commit?
Yes please. 2.21 too.
> 2011-01-28 Joseph Myers <joseph@codesourcery.com>
>
> * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
> field.
--
Alan Modra
Australia Development Lab, IBM