]> git.pld-linux.org Git - packages/crossppc-binutils.git/blob - binutils-build-id.patch
- updated gettext BR
[packages/crossppc-binutils.git] / binutils-build-id.patch
1 --- ../binutils-2.19.50.0.1.orig/bfd/elfcode.h  2008-11-26 09:29:54.000000000 +0000
2 +++ ./bfd/elfcode.h     2008-11-26 12:01:37.000000000 +0000
3 @@ -1170,6 +1170,19 @@ elf_checksum_contents (bfd *abfd,
4  
5        if (i_shdr.contents)
6         (*process) (i_shdr.contents, i_shdr.sh_size, arg);
7 +      else
8 +       {
9 +         asection *sec;
10 +
11 +         sec = bfd_section_from_elf_index (abfd, count);
12 +         if (sec != NULL)
13 +           {
14 +             if (sec->contents == NULL)
15 +               bfd_malloc_and_get_section (abfd, sec, & sec->contents);
16 +             if (sec->contents != NULL)
17 +               (*process) (sec->contents, i_shdr.sh_size, arg);
18 +           }
19 +       }
20      }
21  
22    return TRUE;
This page took 0.065869 seconds and 3 git commands to generate.