PR28542, Undefined behaviours in readelf.c
authorAlan Modra <amodra@gmail.com>
Mon, 8 Nov 2021 22:32:03 +0000 (09:02 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 9 Nov 2021 22:50:10 +0000 (09:20 +1030)
commitb9af637988e82ddfe71bde5ddcb5d9b3a4673acd
treeb6c0faa3531f245d33cc9c0cc91ecfd8ccae95bb
parent5da7a3deab00d81df9c5fa708520fc05d6a22ffa
PR28542, Undefined behaviours in readelf.c

PR 28542
* readelf.c (dump_relocations): Check that section headers have
been read before attempting to access section name.
(print_dynamic_symbol): Likewise.
(process_mips_specific): Delete dead code.
binutils/readelf.c