diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-11-13 22:54:21 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-11-13 22:54:21 +0000 |
commit | 5964fc3adc7735dcdfbde0bb1d3cbceadf2c7c46 (patch) | |
tree | e59d7861136f180c2d7cc9b115728a9e3e0a76ad /bfd/elf.c | |
parent | 62747a60cb791459a9431d3f5f49ddec771084b8 (diff) | |
download | gdb-5964fc3adc7735dcdfbde0bb1d3cbceadf2c7c46.zip gdb-5964fc3adc7735dcdfbde0bb1d3cbceadf2c7c46.tar.gz gdb-5964fc3adc7735dcdfbde0bb1d3cbceadf2c7c46.tar.bz2 |
Allocate elf_segment_map with bfd_zalloc
* elf.c (rewrite_elf_program_header): Allocate elf_segment_map
with bfd_zalloc, instead of bfd_alloc.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6043,7 +6043,7 @@ rewrite_elf_program_header (bfd *ibfd, bfd *obfd) and carry on looping. */ amt = sizeof (struct elf_segment_map); amt += ((bfd_size_type) section_count - 1) * sizeof (asection *); - map = (struct elf_segment_map *) bfd_alloc (obfd, amt); + map = (struct elf_segment_map *) bfd_zalloc (obfd, amt); if (map == NULL) { free (sections); |