diff options
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index a79f295..4d484db 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -14787,8 +14787,12 @@ dump_section_as_ctf (Elf_Internal_Shdr * section, Filedata * filedata) printf (_("\nDump of CTF section '%s':\n"), printable_section_name (filedata, section)); - if (ctf_archive_iter (ctfa, dump_ctf_archive_member, parent) != 0) - ret = FALSE; + if ((err = ctf_archive_iter (ctfa, dump_ctf_archive_member, parent)) != 0) + { + dump_ctf_errs (NULL); + error (_("CTF member open failure: %s\n"), ctf_errmsg (err)); + ret = FALSE; + } fail: ctf_dict_close (parent); |