diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-11-27 06:02:36 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-11-27 06:02:36 -0800 |
commit | 131a5a648d314cd15811158150573cb40eb3abd0 (patch) | |
tree | 7ed3f87fbb8c082a9d326991209a9385f52a2688 /bfd | |
parent | 9fca35fc3486283562a7fcd9eb0ff845b0152d98 (diff) | |
download | binutils-131a5a648d314cd15811158150573cb40eb3abd0.zip binutils-131a5a648d314cd15811158150573cb40eb3abd0.tar.gz binutils-131a5a648d314cd15811158150573cb40eb3abd0.tar.bz2 |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/compress.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4ee7695..272ae0e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2018-11-27 H.J. Lu <hongjiu.lu@intel.com> + + PR binutils/23919 + * compress.c (bfd_is_section_compressed_with_header): Initialize + *uncompressed_align_pow_p to 0. + 2018-11-27 Tamar Christina <tamar.christina@arm.com> PR ld/23904 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 (); |