This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fix 2 spots in ld that used uninitialized memory
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 19 Jun 2006 22:16:54 +0930
- Subject: Re: [PATCH] Fix 2 spots in ld that used uninitialized memory
- References: <20060619114421.GP3823@sunsite.mff.cuni.cz>
On Mon, Jun 19, 2006 at 01:44:21PM +0200, Jakub Jelinek wrote:
> MALLOC_PERTURB_=<some_nonzero_value> causes linker failures and running ld
> under valgrind reports the same. The following patch initializes the 3
> fields that weren't being cleared, although later on ld relied on it.
>
> Ok to commit?
Yes please.
> 2006-06-19 Jakub Jelinek <jakub@redhat.com>
>
> * bfd.c (bfd_record_phdr): Clear p_align and p_align_valid fields.
> * elf.c (_bfd_elf_link_hash_table_init): Clear hplt field.
--
Alan Modra
IBM OzLabs - Linux Technology Centre