objdump, readelf: Report errors from CTF archive iteration
authorNick Alcock <nick.alcock@oracle.com>
Fri, 20 Nov 2020 13:34:04 +0000 (13:34 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 20 Nov 2020 13:34:06 +0000 (13:34 +0000)
commit83d59285d549dab64d1be496408c0e62f30030b4
tree161367211c8c409929664aea89e8f840183cecc0
parentae41200ba807f4342ae7ea5334a29cd6f519b02c
objdump, readelf: Report errors from CTF archive iteration

We were failing to report errors from ctf_archive_iter, which results in
silent early termination if (for example) one CTF archive member in a
.ctf section is corrupted and cannot be opened.  Report the error in the
usual fashion instead.

binutils/ChangeLog
2020-11-20  Nick Alcock  <nick.alcock@oracle.com>

* objdump.c (dump_ctf): Report errors from ctf_archive_iter.
* readelf.c (dump_section_as_ctf): Likewise.
binutils/ChangeLog
binutils/objdump.c
binutils/readelf.c