]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/ChangeLog
Don't add the zlib header to SHF_COMPRESSED section
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
index 9ef7a5d2adccfc7a9bd6700995c3dd8ae28bcecf..3cc88398082e8a0be1c679898115cab40304ee4f 100644 (file)
@@ -1,3 +1,19 @@
+2015-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * bfd.c (bfd_update_compression_header): Also write the zlib
+       header if the SHF_COMPRESSED bit cleared..
+       (bfd_check_compression_header): Return the uncompressed size.
+       * compress.c (decompress_contents): Don't skip the zlib header.
+       (bfd_compress_section_contents): Properly handle ELFCOMPRESS_ZLIB,
+       which doesn't have the zlib header.
+       (bfd_init_section_decompress_status): Likewise.
+       (bfd_get_full_section_contents): Updated.
+       (bfd_is_section_compressed): Likewise.
+       (bfd_is_section_compressed_with_header): Return the uncompressed
+       size.
+       * elf.c (_bfd_elf_make_section_from_shdr): Updated.
+       * bfd-in2.h: Regenerated.
+
 2015-05-14  Jiong Wang  <jiong.wang@arm.com>
 
        * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Remove overflow