From: Jakub Jelinek Date: Tue, 20 Jun 2006 09:58:36 +0000 (+0000) Subject: * bfd.c (bfd_record_phdr): Clear p_align and p_align_valid fields. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed66ec07d2730c3472f9b8c6e11bfe3cdd27329a;p=binutils-gdb.git * bfd.c (bfd_record_phdr): Clear p_align and p_align_valid fields. * elf.c (_bfd_elf_link_hash_table_init): Clear hplt field. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f834f5213e7..a1265d81488 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-06-20 Jakub Jelinek + + * bfd.c (bfd_record_phdr): Clear p_align and p_align_valid fields. + * elf.c (_bfd_elf_link_hash_table_init): Clear hplt field. + 2006-06-20 Alan Modra * elf-bfd.h: Formatting. diff --git a/bfd/bfd.c b/bfd/bfd.c index 406efffbbc3..a2d4ae90b63 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -1336,6 +1336,8 @@ bfd_record_phdr (bfd *abfd, m->includes_filehdr = includes_filehdr; m->includes_phdrs = includes_phdrs; m->count = count; + m->p_align_valid = FALSE; + m->p_align = 0; if (count > 0) memcpy (m->sections, secs, count * sizeof (asection *)); diff --git a/bfd/elf.c b/bfd/elf.c index 44621e61020..25570eccb96 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -1579,6 +1579,7 @@ _bfd_elf_link_hash_table_init table->bucketcount = 0; table->needed = NULL; table->hgot = NULL; + table->hplt = NULL; table->merge_info = NULL; memset (&table->stab_info, 0, sizeof (table->stab_info)); memset (&table->eh_info, 0, sizeof (table->eh_info));