From: Arkadiusz Miƛkiewicz Date: Mon, 23 Mar 2009 07:47:02 +0000 (+0000) Subject: - from fc X-Git-Tag: auto/th/binutils-2_19_51_0_3-2~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=14646ab3f083678e1f8f5c4680bba2fac3696fd4;p=packages%2Fbinutils.git - from fc Changed files: binutils-build-id.patch -> 1.1 --- diff --git a/binutils-build-id.patch b/binutils-build-id.patch new file mode 100644 index 0000000..d035dc4 --- /dev/null +++ b/binutils-build-id.patch @@ -0,0 +1,22 @@ +--- ../binutils-2.19.50.0.1.orig/bfd/elfcode.h 2008-11-26 09:29:54.000000000 +0000 ++++ ./bfd/elfcode.h 2008-11-26 12:01:37.000000000 +0000 +@@ -1170,6 +1170,19 @@ elf_checksum_contents (bfd *abfd, + + if (i_shdr.contents) + (*process) (i_shdr.contents, i_shdr.sh_size, arg); ++ else ++ { ++ asection *sec; ++ ++ sec = bfd_section_from_elf_index (abfd, count); ++ if (sec != NULL) ++ { ++ if (sec->contents == NULL) ++ bfd_malloc_and_get_section (abfd, sec, & sec->contents); ++ if (sec->contents != NULL) ++ (*process) (sec->contents, i_shdr.sh_size, arg); ++ } ++ } + } + + return TRUE;