SHA256
3
0
forked from pool/binutils
binutils/fix-pr23919-2.diff
Michael Matz 9a553bed82 - Fix the fix for PR23919 [bsc#1118644]:
rename handle-ELF-compressed-header-alignment-correctly-by-.patch
  to fix-pr23919-1.diff and add fix-pr23919-2.diff
  and fix-pr23919-3.diff .

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=290
2018-12-06 13:56:46 +00:00

27 lines
926 B
Diff

commit 131a5a648d314cd15811158150573cb40eb3abd0
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Nov 27 06:02:36 2018 -0800
Initialize *uncompressed_align_pow_p to 0
Initialize *uncompressed_align_pow_p to 0 since *uncompressed_align_pow_p
is passed to bfd_is_section_compressed_with_header as uninitialized,
PR binutils/23919
* compress.c (bfd_is_section_compressed_with_header): Initialize
*uncompressed_align_pow_p to 0.
diff --git a/bfd/compress.c b/bfd/compress.c
index 97ea624..18a7597 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -394,6 +394,8 @@ bfd_is_section_compressed_with_header (bfd *abfd, sec_ptr sec,
unsigned int saved = sec->compress_status;
bfd_boolean compressed;
+ *uncompressed_align_pow_p = 0;
+
compression_header_size = bfd_get_compression_header_size (abfd, sec);
if (compression_header_size > MAX_COMPRESSION_HEADER_SIZE)
abort ();