Prevent a seg-fault from objdup when disassembling binaries which do not contain...
authorAdam Lackorzymski <adam@os.inf.tu-dresden.de>
Wed, 12 Jun 2019 14:05:21 +0000 (15:05 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 12 Jun 2019 14:05:21 +0000 (15:05 +0100)
commit62e0492f5723dd3db5e5a48a3a0ac161d7ba2701
treee988843b52c1d20e27e2978ca254fff57c2a73ed
parent9abca70219e8e15991b9a4d3034672c9f720234f
Prevent a seg-fault from objdup when disassembling binaries which do not contain a symbol table.

PR 24643
* elf32-arm.c (arm_elf_find_function): Fail if the symol table is
absent, or the bfd is not in the ELF formart.
* elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
bfd/ChangeLog
bfd/elf32-arm.c
bfd/elfnn-aarch64.c