Re: readelf..debug-dump=loc displays bogus base addresses
authorAlan Modra <amodra@gmail.com>
Thu, 14 Dec 2023 23:34:48 +0000 (10:04 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 15 Dec 2023 02:26:45 +0000 (12:56 +1030)
commite838a672aa787fb593d4819fa4836cad7db49e66
treed5c91d4812dbcfa36fcc84b62c72f300db2a5957
parentb291c12e8d08d01e598526ac6c9cb20543f41293
Re: readelf..debug-dump=loc displays bogus base addresses

Commit b05efa39b479 removed checks I added in commit f22f27f46c75 to
prevent segfaults when debug_info_p is NULL, which can be the case
with fuzzed objects.  Restore those checks.  Also, for dwo look at
rnglists_dwo rather than rnglists.
binutils/dwarf.c