This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]