diff options
author | Nick Clifton <nickc@redhat.com> | 2011-12-14 16:12:13 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-12-14 16:12:13 +0000 |
commit | 0d13c96b214428affc33281d6d119a873c45acee (patch) | |
tree | 6eb7565e1c50f28b760697df8e35b7b5229c0737 /bfd/elfcode.h | |
parent | 1963ff96820f35bddc85eb409caca40810cbcf57 (diff) | |
download | gdb-0d13c96b214428affc33281d6d119a873c45acee.zip gdb-0d13c96b214428affc33281d6d119a873c45acee.tar.gz gdb-0d13c96b214428affc33281d6d119a873c45acee.tar.bz2 |
When computing checksums, skip the contents of sections with the SHT_NOBITS type.
Revert change to compress.c
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index f5727fe..2244874 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -1098,10 +1098,10 @@ elf_checksum_contents (bfd *abfd, (*process) (&x_shdr, sizeof x_shdr, arg); /* PR ld/12451: - Process the section's contents; reading them in if necessary. */ + Process the section's contents, if it has some. Read them in if necessary. */ if (i_shdr.contents) (*process) (i_shdr.contents, i_shdr.sh_size, arg); - else + else if (i_shdr.sh_type != SHT_NOBITS) { asection *sec; |