diff options
author | Alan Modra <amodra@gmail.com> | 2025-04-14 19:11:53 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-04-15 06:59:15 +0930 |
commit | 9e68cae4fdfbc6c5200605764f263b01352fdfc2 (patch) | |
tree | d33f2ac2a59d95e952a539514608add7c20d2f43 /gdb/testsuite/gdb.dwarf2/implref-struct.c | |
parent | 4846e543de9543bff001f58d6a47097e0edd588d (diff) | |
download | binutils-9e68cae4fdfbc6c5200605764f263b01352fdfc2.zip binutils-9e68cae4fdfbc6c5200605764f263b01352fdfc2.tar.gz binutils-9e68cae4fdfbc6c5200605764f263b01352fdfc2.tar.bz2 |
windres: don't exit so much on errors in read_coff_rsrc
windres code has the habit of exiting on any error. That's not so
bad, but it does make oss-fuzz ineffective when testing windres. Fix
many places that print errors and exit to instead print the error and
pass status up the call chain. In the process of doing this, I
noticed write_res_file was calling bfd_close without checking return
status. Fixing that resulted in lots of testsuite failures. The
problem was a lack of bfd_set_format in windres_open_as_binary, which
leaves the output file as bfd_unknown format. As it happens this
doesn't make any difference in writing the output binary file, except
for the bfd_close return status.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/implref-struct.c')
0 files changed, 0 insertions, 0 deletions