Blame binutils-2.19.50.0.1-build-id.patch
|
Nicholas Clifton |
eafd38 |
diff -rup ../binutils-2.19.51.0.11.orig/bfd/elfcode.h bfd/elfcode.h
|
|
Nicholas Clifton |
eafd38 |
--- ../binutils-2.19.51.0.11.orig/bfd/elfcode.h 2009-07-14 11:23:27.000000000 +0100
|
|
Nicholas Clifton |
eafd38 |
+++ bfd/elfcode.h 2009-07-14 11:33:56.000000000 +0100
|
|
Nicholas Clifton |
eafd38 |
@@ -1170,6 +1170,24 @@ elf_checksum_contents (bfd *abfd,
|
|
Nicholas Clifton |
15996d |
|
|
Nicholas Clifton |
15996d |
if (i_shdr.contents)
|
|
Nicholas Clifton |
15996d |
(*process) (i_shdr.contents, i_shdr.sh_size, arg);
|
|
Nicholas Clifton |
15996d |
+ else
|
|
Nicholas Clifton |
15996d |
+ {
|
|
Nicholas Clifton |
15996d |
+ asection *sec;
|
|
Nicholas Clifton |
15996d |
+
|
|
Nicholas Clifton |
15996d |
+ sec = bfd_section_from_elf_index (abfd, count);
|
|
Nicholas Clifton |
15996d |
+ if (sec != NULL)
|
|
Nicholas Clifton |
15996d |
+ {
|
|
Nicholas Clifton |
15996d |
+ if (sec->contents == NULL)
|
|
Nicholas Clifton |
eafd38 |
+ {
|
|
Nicholas Clifton |
eafd38 |
+ /* Force rereading from file. */
|
|
Nicholas Clifton |
eafd38 |
+ sec->flags &= ~SEC_IN_MEMORY;
|
|
Nicholas Clifton |
eafd38 |
+ if (! bfd_malloc_and_get_section (abfd, sec, & sec->contents))
|
|
Nicholas Clifton |
eafd38 |
+ continue;
|
|
Nicholas Clifton |
eafd38 |
+ }
|
|
Nicholas Clifton |
15996d |
+ if (sec->contents != NULL)
|
|
Nicholas Clifton |
15996d |
+ (*process) (sec->contents, i_shdr.sh_size, arg);
|
|
Nicholas Clifton |
15996d |
+ }
|
|
Nicholas Clifton |
15996d |
+ }
|
|
Nicholas Clifton |
15996d |
}
|
|
Nicholas Clifton |
15996d |
|
|
Nicholas Clifton |
15996d |
return TRUE;
|