PR28346, segfault attempting to disassemble raw binary
authorAlan Modra <amodra@gmail.com>
Fri, 24 Sep 2021 08:21:00 +0000 (17:51 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 25 Sep 2021 01:22:43 +0000 (10:52 +0930)
commit99d0d99649c12b2bdccaeb788d5d0f0d0dff4d5d
tree015d4c715bacec132eb64eacb30a42ab97a0a81d
parentef7639ccb7a739326ed2b872afdd9b701404cad8
PR28346, segfault attempting to disassemble raw binary

Don't attempt to access elf_section_data for non-ELF sections.

PR 28346
* elf32-xtensa.c (xtensa_read_table_entries): Return zero entries
for non-ELF.
bfd/elf32-xtensa.c