* bfd.c (bfd_check_compression_header): Check for powers of two
with x == (x & -x).
+2019-10-15 Alan Modra <amodra@gmail.com>
+
+ * bfd.c (bfd_check_compression_header): Check for powers of two
+ with x == (x & -x).
+
2019-10-14 Alan Modra <amodra@gmail.com>
* syms.c (struct indexentry): Add idx field.
chdr.ch_addralign = bfd_get_64 (abfd, &echdr->ch_addralign);
}
if (chdr.ch_type == ELFCOMPRESS_ZLIB
- && chdr.ch_addralign == (1U << bfd_log2 (chdr.ch_addralign)))
+ && chdr.ch_addralign == (chdr.ch_addralign & -chdr.ch_addralign))
{
*uncompressed_size = chdr.ch_size;
*uncompressed_alignment_power = bfd_log2 (chdr.ch_addralign);