From 97dc69a186828fd42e7ed11605c973cf77f8e4a9 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 14 Dec 2011 16:12:12 +0000 Subject: When computing checksums, skip the contents of sections with the SHT_NOBITS type. Revert change to compress.c --- bfd/elfcode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bfd/elfcode.h') diff --git a/bfd/elfcode.h b/bfd/elfcode.h index f5727feda4..22448744a8 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; -- cgit v1.2.1