]> git.pld-linux.org Git - packages/binutils.git/blame - binutils-pr3262.patch
- pr3262 patch merged.
[packages/binutils.git] / binutils-pr3262.patch
CommitLineData
c6ffaa02
PS
12006-09-26 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR binutils/3262
4 * elf.c (rewrite_elf_program_header): Use bfd_zalloc instead of
5 bfd_alloc to allocate segment map.
6 (copy_elf_program_header): Likewise.
7
8--- bfd/elf.c.zero 2006-09-24 10:26:59.000000000 -0700
9+++ bfd/elf.c 2006-09-26 12:02:35.000000000 -0700
10@@ -5401,7 +5401,7 @@ rewrite_elf_program_header (bfd *ibfd, b
11 all of the sections we have selected. */
12 amt = sizeof (struct elf_segment_map);
13 amt += ((bfd_size_type) section_count - 1) * sizeof (asection *);
14- map = bfd_alloc (obfd, amt);
15+ map = bfd_zalloc (obfd, amt);
16 if (map == NULL)
17 return FALSE;
18
19@@ -5796,7 +5796,7 @@ copy_elf_program_header (bfd *ibfd, bfd
20 amt = sizeof (struct elf_segment_map);
21 if (section_count != 0)
22 amt += ((bfd_size_type) section_count - 1) * sizeof (asection *);
23- map = bfd_alloc (obfd, amt);
24+ map = bfd_zalloc (obfd, amt);
25 if (map == NULL)
26 return FALSE;
27
This page took 0.036834 seconds and 4 git commands to generate.