PR25675: SIGSEGV in bfd_octets_per_byte
authorAlan Modra <amodra@gmail.com>
Mon, 16 Mar 2020 09:04:00 +0000 (19:34 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 16 Mar 2020 09:05:12 +0000 (19:35 +1030)
commit4b3ecb3b91b1b6154a6444efdcbadb90854a6654
tree9949842cb26ed8573ddb283fa8eff87be76058fd
parent28d1356774c2c61adc7d6e6723de2351cd9f4ddc
PR25675: SIGSEGV in bfd_octets_per_byte

PR 25675
* elf.c (elf_sort_segments): Don't call bfd_octets_per_byte unless
we have a non-zero section count.  Do lma comparison in octets.
bfd/ChangeLog
bfd/elf.c