objdump disassembly of files without symbols
authorAlan Modra <amodra@gmail.com>
Tue, 10 Mar 2020 02:52:25 +0000 (13:22 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 10 Mar 2020 03:24:01 +0000 (13:54 +1030)
commit41da082238bbc3bbe8bac1b0fbcab716fe7c87f2
tree9d480e5a61bea83f6ae61724f3a81e38ad12b05d
parent6b5e16ffd3e8886fa3fb90d63e3200fcc373848e
objdump disassembly of files without symbols

ubsan complains about memcpy with a NULL src even when size is zero.

* objdump.c (disassemble_section): Don't call qsort unless
sym count is at least two.
(disassemble_data): Don't call memcpy with NULL src.
binutils/ChangeLog
binutils/objdump.c