[PATCH] Fix 2 spots in ld that used uninitialized memory

Alan Modra amodra@bigpond.net.au
Mon Jun 19 13:00:00 GMT 2006


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



More information about the Binutils mailing list