* bfd.c (bfd_record_phdr): Clear p_align and p_align_valid fields.
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Jun 2006 09:58:36 +0000 (09:58 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 20 Jun 2006 09:58:36 +0000 (09:58 +0000)
* elf.c (_bfd_elf_link_hash_table_init): Clear hplt field.

bfd/ChangeLog
bfd/bfd.c
bfd/elf.c

index f834f5213e7521f20443e297c7ea173226391e28..a1265d81488286f11394ebe197b045e9b288e2a4 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-20  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.
+
 2006-06-20  Alan Modra  <amodra@bigpond.net.au>
 
        * elf-bfd.h: Formatting.
index 406efffbbc3cb9a4777101cf4e50b2cc0f596339..a2d4ae90b633b1913f92c1c60fc99c5578d9170b 100644 (file)
--- 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 *));
 
index 44621e610200cc2433abde0b57dcabbd3791c561..25570eccb96802e92080534d0ce7c8099c9ddcdc 100644 (file)
--- 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));