diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-12-31 17:23:07 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-12-31 17:23:07 +0000 |
commit | fb70130a33bd21e42109cc11eff2d957d630f4f9 (patch) | |
tree | ef30ddc8fcb0b8753904e573aa1ddb67c30bc742 | |
parent | 5eefc2b7e01f71483663188a9554670e6c4ac5a3 (diff) | |
download | gdb-fb70130a33bd21e42109cc11eff2d957d630f4f9.zip gdb-fb70130a33bd21e42109cc11eff2d957d630f4f9.tar.gz gdb-fb70130a33bd21e42109cc11eff2d957d630f4f9.tar.bz2 |
2006-12-31 H.J. Lu <hongjiu.lu@intel.com>
* bfd.c (bfd_record_phdr): Call bfd_zalloc instead of bfd_alloc
to allocate elf_segment_map.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/bfd.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5a74f9c..1ffb1a8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-12-31 H.J. Lu <hongjiu.lu@intel.com> + + * bfd.c (bfd_record_phdr): Call bfd_zalloc instead of bfd_alloc + to allocate elf_segment_map. + 2006-12-29 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (elf_link_add_object_symbols): Remember the symbol @@ -1352,11 +1352,10 @@ bfd_record_phdr (bfd *abfd, amt = sizeof (struct elf_segment_map); amt += ((bfd_size_type) count - 1) * sizeof (asection *); - m = bfd_alloc (abfd, amt); + m = bfd_zalloc (abfd, amt); if (m == NULL) return FALSE; - m->next = NULL; m->p_type = type; m->p_flags = flags; m->p_paddr = at; @@ -1365,8 +1364,6 @@ 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 *)); |