Replace reachable assertion with a test and return of NULL.
authorNick Clifton <nickc@redhat.com>
Tue, 6 Feb 2018 16:05:13 +0000 (16:05 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 6 Feb 2018 16:05:13 +0000 (16:05 +0000)
commit68807c3cd64ccc4f0e9261df3e840d30d9a19b51
tree3c9d9f4b135943edf452ad681b4a359ef1abe1e3
parent64e234d417d5685a4aec0edc618114d9991c031b
Replace reachable assertion with a test and return of NULL.

PR 22793
* readelf.c (find_section): Replace assertion with test and return
of NULL.
(find_section_by_address): Add test of section header table
existance.
(find_section_by_type): Likewise.
(find_section_in_set): Likewise.
binutils/ChangeLog
binutils/readelf.c