1 diff -rcp ../binutils-2.20.51.0.7.original/bfd/elfcode.h ./bfd/elfcode.h
2 *** ../binutils-2.20.51.0.7.original/bfd/elfcode.h 2010-04-08 15:29:32.000000000 +0100
3 --- ./bfd/elfcode.h 2010-04-08 15:29:39.000000000 +0100
4 *************** elf_checksum_contents (bfd *abfd,
9 (*process) (i_shdr.contents, i_shdr.sh_size, arg);
14 + sec = bfd_section_from_elf_index (abfd, count);
17 + if (sec->contents == NULL)
19 + /* Force rereading from file. */
20 + sec->flags &= ~SEC_IN_MEMORY;
21 + if (! bfd_malloc_and_get_section (abfd, sec, & sec->contents))
24 + if (sec->contents != NULL)
25 + (*process) (sec->contents, i_shdr.sh_size, arg);
31 diff -rcp ../binutils-2.20.51.0.7.original/bfd/section.c ./bfd/section.c
32 *** ../binutils-2.20.51.0.7.original/bfd/section.c 2010-04-08 15:29:32.000000000 +0100
33 --- ./bfd/section.c 2010-04-08 15:29:39.000000000 +0100
34 *************** bfd_malloc_and_get_section (bfd *abfd, s
39 ! bfd_malloc (sec->rawsize > sec->size ? sec->rawsize : sec->size);
47 ! bfd_zmalloc (sec->rawsize > sec->size ? sec->rawsize : sec->size);
51 diff -rcp ../binutils-2.20.51.0.7.original/bfd/section.c.orig ./bfd/section.c.orig