Fix section dumping so that warnings are not issued for missed sections in separate...
authorNick Clifton <nickc@redhat.com>
Thu, 18 Mar 2021 14:01:25 +0000 (14:01 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 18 Mar 2021 14:01:25 +0000 (14:01 +0000)
commit835f2fae11e41956523df3839cd50471b708e97d
tree3919da9b67926024b4de6eb232406587504f82d7
parent69a284867c7c92960653cbeab6f79cd815f1342f
Fix section dumping so that warnings are not issued for missed sections in separate debuginfo files.

PR 27478
* readelf.c (dump_section_as_strings): Mention separate filename.
(dump_section_as_bytes): Likewise.
(dump_section_as_ctf): Likewise.
(initialise_dumkps_byname): Only issue a warning for missing
sections if processing the main file.
(process_section_contents): Only issue a warning for unsumped
section numbers in the main file.
(initialise_dump_sects): New function.  Contains code extracted
from ...
(process_object): ... here.  Also call initialise_dump_sects for
separate files.
binutils/ChangeLog
binutils/readelf.c